How to solve a non linear simultaneous equation with 4 unknowns and 4 equations ?
Show older comments
How to solve a non linear simultaneous equation with 4 unknowns and 4 equations ?
these are my equations:
% x^2 + y^2 + z^2 = (t^2)*(299792458^2)
% (A + x)^2 + (B + y)^2 + (C + z)^2 = ((q + t)^2 )*(299792458^2)
% (D + x)^2 + (E + y)^2 + (F + z)^2 = ((r + t)^2 )*(299792458^2)
% (G + x)^2 + (H + y)^2 + (I + z)^2 = ((s + t)^2 )*(299792458^2)
where x,y,z, and t are the unknowns and A,B,C,D,E,F,G,H,I,q,r and s are constants.
Any help on how best to go about solving this is appreciated.
-mk
Answers (1)
Azzi Abdelmalek
on 16 Mar 2013
0 votes
4 Comments
Manick
on 24 Mar 2013
p fontaine
on 24 Mar 2013
x shall be a vector with the 4 unknowns. Try :
function F = myfun(x)
F = [- 89875517873681764*x(4)^2 + x(1)^2 + x(2)^2 + x(3)^2 ;
(x(1) + 1/5)^2 + (x(2) + 1/5)^2 - 89875517873681764*(x(4) + 1/1000000000)^2 + x(3)^2 ;
(x(1) + 1/2)^2 - 89875517873681764*(x(4) + 7737125245533627/38685626227668133590597632)^2 + (x(3) + 1/10)^2 + (- 89875517873681764*x(4)^2 + x(1)^2 + x(2)^2 + x(2) + x(3)^2)^2 ;
(x(1) + 3/5)^2 + (x(2) + 3/5)^2 + (x(3) + 1/10)^2 - 89875517873681764*(x(4) + 785801782749509/604462909807314587353088)^2]
end
Manick
on 26 Mar 2013
Manick
on 26 Mar 2013
Categories
Find more on Mathematics and Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!