Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7975
| From | oversky <mailcwc@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Question about function |
| Date | 2012-01-18 11:05 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jf6917$gbm$1@smc.vnet.net> (permalink) |
I define the following function:
xPrint[x_]:=(Print[HoldForm[x]," =",Tab,x]);
Attributes[xPrint]={HoldAll,Listable};
a=5;
xPrint[a]
-> a = 5
I want to modify this code such that it can handle multiple arguments.
For example,
a=5;
b=6;
xPrint[a,b]
-> a = 5
-> b = 6
How do I get the argument one by one and feed it into Print[]?
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Question about function oversky <mailcwc@gmail.com> - 2012-01-18 11:05 +0000 Re: Question about function "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2012-01-19 10:06 +0000
csiph-web