[Date Index] [Thread Index] [Author Index]
Re: definition of function with several varyables?????
You forgot the underscore after zs...classical mistake ;-) Orestis "Alexei Kharine" <A.Kharine at tn.utwente.nl> wrote in message news:9jo9qi$17l$1 at smc.vnet.net... > 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?? > > >