[Maxima] Documentation error
rvh2007 at comcast.net
Tue Apr 15 20:29:14 CDT 2008
I tried out the newton function and it said it takes 2 arguments, the help says 4 arguments.
release candidate 1
newton(u^2 - 3 ,8);
the above works
newton(u^2 - 3 ,u, 8,1/1000000000000000);
the above does not and gives error below
Too many arguments supplied to newton(expr,guess):[u^2-3,8,1/1000000000000000] -- an error. To debug this try debugmode(true);
The help says
Function: newton (expr, x, x_0, eps)
Returns an approximate solution of expr = 0 by Newton's method, considering expr to be a function of one variable, x. The search begins with x = x_0 and proceeds until abs(expr) < eps (with expr evaluated at the current value of x).
newton allows undefined variables to appear in expr, so long as the termination test abs(expr) < eps evaluates to true or false. Thus it is not necessary that expr evaluate to a number.
load(newton1) loads this function.
See also realroots, allroots, find_root, and mnewton
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Maxima