|
From: | Paul Thomas |
Subject: | Re: two quadratic eq, please help |
Date: | Mon, 7 Feb 2005 08:09:00 +0100 |
highly appreciate anyone can tell me how (or hint) to use octave tosolve:(12-x)^2 + y^2 =15^2, (16+y)^2+x^2=25^2 (by programming or using its builtin function)?
Are these to be solved simultaneously? If so, there are two real solutions possible (ie both intersections of the two circles);
From (i) y = +/- ( 15^2 - (12-x)^2 ) ^0.5
=> (ii) (16 +/- ( 15^2 - (12-x)^2 )^0.5 )^2 + x^2 = 25^2 Then solve both of these roots with fsolve. Paul T ------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |