필터 지우기
필터 지우기

Simplifying Complex expressions in Matlab Symbolic Toolbox

조회 수: 2 (최근 30일)
JXT119
JXT119 2022년 4월 14일
댓글: JXT119 2022년 4월 15일
Is there any way of finding the real and imaginary part of an expression using a method similar to this one ?
syms x y xv yv T
z = complex(x, y);
zv = complex(xv,yv);
z_conj = complex(xv,-yv);
f(z) = (-T/(2*pi))*1i*log((z^2-zv^2)*(z^2-z_conj^2));
xv, yv and T are parameters.
  댓글 수: 2
John D'Errico
John D'Errico 2022년 4월 14일
Did you not do exactly that?
JXT119
JXT119 2022년 4월 15일
No, I want to obtain a simplified expression of the form f(z) = g(x,y,xv,yv,T) + iH(x,y,xv,yv,T)

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

답변 (1개)

Steven Lord
Steven Lord 2022년 4월 14일
Did you mean to assume that x, y, xv, yv, and/or T are real?
syms x1 y1 real
syms x2 y2
z1 = x1 + 1i*y1
z1 = 
z2 = x2 + 1i*y2
z2 = 
z1c = real(z1)
z1c = 
z2c = real(z2)
z2c = 
  댓글 수: 1
JXT119
JXT119 2022년 4월 15일
Yes, but I want to obtain a simplified expression of the form f(z) = g(x,y,xv,yv,T) + iH(x,y,xv,yv,T), but I do not know if Matlab Symbolic Toolbox is able to do so.

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

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by