How to solve non linear equations with two unknowns?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 23 Mai 2016
Modifié(e) : Azzi Abdelmalek
le 23 Mai 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)
Catégories
En savoir plus sur Splines dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!