help me with Maxima
- Subject: help me with Maxima
- From: van.Nek at gmx.net
- Date: Thu, 16 Mar 2006 21:01:25 +0100
--Alt-Boundary-9743.5852014
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Am 16 Mar 2006 um 8:53 hat Tecnico Bonacini geschrieben:
>
> How could i solve system of non-linear equations (equations with sin(), cos(), log(), ....) with
> Maxima?
>
> In Maxima Primer there is onlythis example:
>
> solve([x+y+z=5,3*x-5*y=10,y+2*z=3],[x,y,z]);
>
>
> Thank you
>
> Best Regards
>
> Massimo
Hello Massimo,
please have a look at mnewton.mac, which you find in
Maxima-5.9.2\share\maxima\5.9.2\share\contrib
There is also a demo file.
Example: sin(x)+2*log(y)=0, 3*x+y=0
(%i12) load(mnewton);
(%o12) F:/Programme/Maxima-5.9.2/share/maxima/5.9.2/share/contrib/mnewton.mac
(%i13) mnewton( [ sin(x)+2*log(y), 3*x+y ], [x,y], [1,1] );
(%o13) [[x = - 0.40612911733193, y = 1.218387351995787]]
Hope that helps
Volker van Nek
--Alt-Boundary-9743.5852014
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
<?xml version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:10pt">Am 16 Mar 2006 um 8:53 hat Tecnico Bonacini geschrieben:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> How could i solve system of non-linear equations (equations with sin(), cos(), log(),
....) with </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> Maxima?</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> In Maxima Primer there is onlythis example:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> solve([x+y+z=5,3*x-5*y=10,y+2*z=3],[x,y,z]);</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> Thank you</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> Best Regards</span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000"><span style="font-size:10pt">> Massimo</span></font></div>
<div align="left"><br/></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hello Massimo,</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">please have a look at mnewton.mac, which you find in </span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Maxima-5.9.2\share\maxima\5.9.2\share\contrib</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">There is also a demo file.</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Example: </span></font><font face="Arial"><span style="font-size:10pt">sin(x)+2*log(y)=0, 3*x+y=0</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%i12) load(mnewton);</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%o12) F:/Programme/Maxima-5.9.2/share/maxima/5.9.2/share/contrib/mnewton.mac</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%i13) mnewton( [ sin(x)+2*log(y), 3*x+y ], [x,y], [1,1] );</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:10pt">(%o13)        [[x = - 0.40612911733193, y = 1.218387351995787]]</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Hope that helps</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:10pt">Volker van Nek</span></font></div>
</body>
</html>
--Alt-Boundary-9743.5852014--