MathGroup Archive 2001

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

Search the Archive

definition of function with several varyables?????


Dear.....
could you help me with solving of one problem which seems to be very easy,
but I could not find answer.

 r[x_,y_,xs_,ys_,zs]:=((x-xs)^2+(y-ys)^2+zs^2)^0.5;
Print["r="," ",N[r[0,0,0,0,2]]];

after calculation:
out[]= r = r[0.,0.,0.,0.,2.]

where is error???
and how to get numerical answer??




  • Prev by Date: Front End
  • Next by Date: Mathematica 3.0 finds root but Math 4.0 does not
  • Previous by thread: Re: Front End
  • Next by thread: Re: definition of function with several varyables?????