Simplification of complex symbolic fratcion
10 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a complex symbolic fraction.
syms U_1 R C omega positive
U_2 = -(U_1*sym(1i))/(C^2*R^2*omega^sym(2)*sym(1i) + 3*C*R*omega - sym(1i))
How can i get rid of the imaginary unit as common factor in the numerator and the denominator of this fraction.
simplifyFraction(U_2)
does not work.
Kind regards
Michael
0 个评论
采纳的回答
Walter Roberson
2021-11-11
syms U_1 R C omega positive
U_2 = -(U_1*sym(1i))/(C^2*R^2*omega^sym(2)*sym(1i) + 3*C*R*omega - sym(1i))
[N, D] = numden(U_2)
U_2a = (N*1i)/(D*1i)
3 个评论
Walter Roberson
2021-11-11
Yes, of course there are other options. For example you could use feval(symengine) to pass commands directly into the symbolic engine using MuPad language constructs.
But you are not going to be able to just call simplify() or rewrite()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!