[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: two quadratic eq, please help
From: |
Dmitri A. Sergatskov |
Subject: |
Re: two quadratic eq, please help |
Date: |
Sun, 06 Feb 2005 17:15:18 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041127) |
Geordie McBain wrote:
Create a function to return the residual:
function z = f (x)
z = [(12-x(1))^2+x(2)^2-15^2, (16+x(2))^2+x(1)^2-25^2];
endfunction
and fsolve it:
octave> fsolve ("f", [0, 0])
ans =
1.8887e-15
9.0000e+00
and:
octave:5> fsolve ("f", [24, -9])
ans =
24
-9
:)
and so forth :)
Geordie McBain
www.aeromech.usyd.edu.au/~mcbain
Regards,
Dmitri.
--
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- two quadratic eq, please help, shih lin, 2005/02/06
- Re: two quadratic eq, please help, Vic Norton, 2005/02/06
- Re: two quadratic eq, please help, Paul Kienzle, 2005/02/06
- Re: two quadratic eq, please help, Geordie McBain, 2005/02/07
- Re: two quadratic eq, please help,
Dmitri A. Sergatskov <=