필터 지우기
필터 지우기

Simplification of complex symbolic fratcion

조회 수: 5 (최근 30일)
Michael
Michael 2021년 11월 11일
댓글: Michael 2021년 11월 12일
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))
U_2 = 
How can i get rid of the imaginary unit as common factor in the numerator and the denominator of this fraction.
simplifyFraction(U_2)
ans = 
does not work.
Kind regards
Michael

채택된 답변

Walter Roberson
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))
U_2 = 
[N, D] = numden(U_2)
N = 
D = 
U_2a = (N*1i)/(D*1i)
U_2a = 
  댓글 수: 3
Walter Roberson
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()
Michael
Michael 2021년 11월 12일
Thank you for the explanation.
Michael

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by