Lost my glasses, lens fell out, didn't see the 1.
------------Original Message------------
From: "Richard Hennessy"<rvh2007 at comcast.net>
To: "Maxima List" <maxima at math.utexas.edu>
Date: Tue, Apr-15-2008 9:29 PM
Subject: Documentation error
I tried out the newton function and it said it takes 2 arguments, the help says 4 arguments.
release candidate 1
5.14.99
load(newton);
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
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima