MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: output forms


	For the function, use "set delayed" rather than "set" and
include the variables.  For example, d[x_,y_,z_]:=x+y+z.  Then =
d[1,2,3]
will give you 6, or -- if you have assigned ("set") a, b, and c to 1, 2,
and 3 --  d[a,b,c] will also give you 6.

	Best,

	Harvey


-----Original Message-----
From: klkj fukyfl [mailto:kitas11 at yahoo.com]
Sent: Saturday, September 17, 2011 6:26 AM
To: mathgroup at smc.vnet.net
Subject: [mg121527] output forms

Hello, I need Matheamtica to do the following:

in:

a=1;
b=2;
c=3;
d=a+b*c

out:

d=1+2*3
and so on...

previously I was using another system, but I found that this kind of
stuff is impossible

Can this be performed on Mathematica?




  • Prev by Date: (x - 1) or (-1 + x)
  • Next by Date: Re: String Deletion
  • Previous by thread: output forms
  • Next by thread: Re: output forms