How to solve non linear equations with two unknowns?
Show older comments
Kindly help me solving these equations
eqn1 = -(49*sin(x1 + x2) - 120*cos(x1) + 20*cos(x2) + 392*sin(x1) - 10)/(30*cos(x2) + 110) =0
eqn2 = -(539*sin(x1 + x2) + 10*cos(x2) + 120*cos(x1)*cos(x2) - 392*cos(x2)*sin(x1) - 20*cos(x2)^2 + 98*sin(x1 + x2)*cos(x2))/(30*cos(x2) + 110)=0
I have tried solving them but could`t find their solutions.
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 23 May 2016
Edited: Azzi Abdelmalek
on 23 May 2016
syms x1 x2
eqn1 = -(49*sin(x1 + x2) - 120*cos(x1) + 20*cos(x2) + 392*sin(x1) - 10)/(30*cos(x2) + 110)
eqn2 = -(539*sin(x1 + x2) + 10*cos(x2) + 120*cos(x1)*cos(x2) - 392*cos(x2)*sin(x1) - 20*cos(x2)^2 + 98*sin(x1 + x2)*cos(x2))/(30*cos(x2) + 110)
sol=solve(eqn1,eqn2)
x1=double(sol.x1)
x2=double(sol.x2)
Categories
Find more on Splines 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!