--Alt-Boundary-15045.52243218
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
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
--Alt-Boundary-15045.52243218
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Am 10 Jun 2006 um 14:31 hat James Supancic geschrieben:</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> numerical methods gone missing?</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> I am trying to help someone on the freenode #maximia IRC channel, they would like to use the </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> find_root function as documented in in the Maximia manual.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> However, any attempt to use the function, such as</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> find_root (sin(x) - x/2, x, 0.1, %pi); </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> fails by returning a slightly modified version of itself, basically the output is </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> find_root (sin(x) - x/2, x, 0.1, %pi); </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> with some minor formatting changes. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> In the manuals example the result should have been</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> 1.895494267033981</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> I suspect that we do not have the proper numerical module loaded? I tried loading a bunch of </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> stuff out of /usr/share/maxima/5.9.1, and it failed to fix the problem.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> What must we do to get the find_root function to work as advertised.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> Thank you for your time,</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> James Supancic</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Hi James, </span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">I read that you are using 5.9.1.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">In 5.9.1 and 5.9.2 this function is called 'interpolate'</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">5.9.1/2: interpolate(sin(x) - x/2, x, 0.1, %pi); --> 1.895494267033981</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">5.9.3: find_root (sin(x) - x/2, x, 0.1, %pi); --> 1.895494267033981</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt"><br />
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style="font-size:10pt">Volker</span></font></div>
<div align="left"></div>
</body>
</html>
--Alt-Boundary-15045.52243218--