On Fri, 2010-10-22 at 23:26 +0200, laurent couraud wrote:
> It seems mnewton is unable to solve single equation.
>
> Maxima 5.22.0 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) load(mnewton);
> (%o1)
> C:/PROGRA~1/MAXIMA~1.0/share/maxima/5.22.0/share/contrib/mnewton.mac
> (%i2) mnewton(cos(x)=1/2,x,0.99);
> Improper argument to coefmatrix:
> ([ 0.048689860581588 ] - 0.83602597860052 transpose(h ))
It works fine for me:
Maxima 5.22post http://maxima.sourceforge.net
using Lisp SBCL 1.0.29.11.debian
(%i1) load(mnewton);
(%o1) /usr/local/share/maxima/5.22post/share/contrib/mnewton.mac
(%i2) mnewton(cos(x)=1/2,x,0.99);
(%o2) [[x = 1.047197551196598]]
Regards,
Jaime