Hi James,
Just for the clarity, on using Maxima 5.9.3, the find_root()
works as documented in the latest online manual:
Maxima 5.9.3 http://maxima.sourceforge.net
Using Lisp CMU Common Lisp 19c (19C)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) find_root (sin(x) - x/2, x, 0.1, %pi);
(%o1) 1.895494267033981
(%i2)
Yasuaki Honda
On 2006/06/11, at 9:13 AM, van Nek wrote:
> Am 10 Jun 2006 um 14:31 hat James Supancic geschrieben:
>
> >
> > numerical methods gone missing?
> >
> > I am trying to help someone on the freenode #maximia IRC channel,
> they would like to use the
> > find_root function as documented in in the Maximia manual.
> >
> > However, any attempt to use the function, such as
> >
> > find_root (sin(x) - x/2, x, 0.1, %pi);
> >
> > fails by returning a slightly modified version of itself,
> basically the output is
> > find_root (sin(x) - x/2, x, 0.1, %pi);
> > with some minor formatting changes.
> > In the manuals example the result should have been
> >
> > 1.895494267033981
> >
> > I suspect that we do not have the proper numerical module loaded?
> I tried loading a bunch of
> > stuff out of /usr/share/maxima/5.9.1, and it failed to fix the
> problem.
> >
> > What must we do to get the find_root function to work as advertised.
> >
> > Thank you for your time,
> > James Supancic
> >
>
> Hi James,
>
> I read that you are using 5.9.1.
>
> In 5.9.1 and 5.9.2 this function is called 'interpolate'
>
> 5.9.1/2: interpolate(sin(x) - x/2, x, 0.1, %pi); --> 1.895494267033981
>
> 5.9.3: find_root (sin(x) - x/2, x, 0.1, %pi); --> 1.895494267033981
>
> Volker