The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Question about function
Replies: 1   Last Post: Jan 19, 2012 5:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 52
Registered: 7/14/05
Question about function
Posted: Jan 18, 2012 6:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I define the following function:

xPrint[x_]:=(Print[HoldForm[x]," =",Tab,x]);

-> a = 5

I want to modify this code such that it can handle multiple arguments.
For example,


-> a = 5
-> b = 6

How do I get the argument one by one and feed it into Print[]?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.