how to solve this complex equation in matlab?

12 ビュー (過去 30 日間)
peng peng
peng peng 2020 年 2 月 23 日
回答済み: Star Strider 2020 年 2 月 23 日
I have an equation exp(pi/4*i)*(5+15i)+exp(i*theta)*(25+5i)=40+exp(i*gama)*(-10+20i)
how can I get theta and gama in matlab?
THANK YOU
  1 件のコメント
peng peng
peng peng 2020 年 2 月 23 日
theta and gama are both real number

サインインしてコメントする。

採用された回答

Star Strider
Star Strider 2020 年 2 月 23 日
Try this:
syms theta gama
Eqn = exp(pi/4*i)*(5+15i)+exp(i*theta)*(25+5i) == 40+exp(i*gama)*(-10+20i);
[theta,gama] = vpasolve(Eqn, [theta,gama])
There are likely an infinity of solutions.
Here is one:
theta =
- 0.040930734767103408831012033619698 - 0.24192384707974160991614274286353i
gama =
0.19932582865736336790217825251885 - 0.085773888296270118753805499893846i

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOptimization についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by