Solve Nonlinear complex equation
1 次查看(过去 30 天)
显示 更早的评论
Hello everybody How can I solve th equation below for X1 and X2 in MATLAB?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/648180/IMG_20210610_004540_415.jpg)
For more information, one of Ci's should be found by calcualtion and input in this equation other Ci's are known. Thank You for your help
回答(1 个)
David Hill
2021-6-9
syms c1 c2 c3 c4 c5 c6 x1 x2;
eqn=c1*exp(1i*x1)+c2*exp(1i*c3)-c4*exp(1i*c5)+x2*exp(1i*c6)==0;
a=solve(eqn,x1);
b=solve(eqn,x2);
2 个评论
John D'Errico
2021-6-9
Which does nothing, because it just solves for one of the unknowns as a function of the other.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!