solving equation in complex vaariables

2 ビュー (過去 30 日間)
R yan
R yan 2011 年 7 月 23 日
How can I solve z(z-1)=1 using MATLAB. z is a complex variable. Is there any direct method? I did it separating the real part and imaginary part.

採用された回答

Walter Roberson
Walter Roberson 2011 年 7 月 23 日
Expand the expression:
z*(z-1)=1
z^2-z=1
z^2-z-1=0
This is a quadratic equation which can be solved by standard methods,
roots([1,-1,-1])
You will find that the solutions have no imaginary components.
  2 件のコメント
R yan
R yan 2011 年 7 月 23 日
Thanks for your answer. But for any general equation in Z, does MATLAB has a direct solver?
Walter Roberson
Walter Roberson 2011 年 7 月 23 日
No. There is no direct solver that is suitable for "any general equation" even in reals.
The Symbolic Toolbox is able to solve a fair variety of equations over complex numbers.
The only general solving routine outside of the Symbolic Toolbox that I have found that is able to handle complex numbers directly, is fgoalattain()

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by