|
From: Thomas S. <t.s...@fz...> - 2011-02-16 08:26:02
|
integer division... gnuplot> print 1/2 0 gnuplot> print 1./2. 0.5 gnuplot> print 5**(1/2) 1 gnuplot> print 5**(1./2.) 2.23606797749979 'x**0' is always '1' minimalmiser wrote: > > I am having problems with order of evaluation! I am plotting the function: > d(x)=x**(1/2) > It would seem that this should be the square root of x, but instead it > evaluates to 1, for any value of x. > Clearly the parenthesis is not evaluating first, but this does not make > any sense because the docs say they evaluate first! > Does anyone have clarification on this issue? > -- View this message in context: http://old.nabble.com/order-of-evaluation-tp30936586p30936606.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |