solving equation in complex vaariables
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 个评论
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 Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!