From help-request at octave dot org Sun Feb 6 18:12:56 2005 Subject: Re: two quadratic eq, please help From: "Dmitri A. Sergatskov" To: Geordie McBain CC: help at octave dot org Date: Sun, 06 Feb 2005 17:15:18 -0700 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 -------------------------------------------------------------