Real and Imaginary part of this function please

4 visualizaciones (últimos 30 días)
Paramonte
Paramonte el 5 de Jun. de 2019
Comentada: Paramonte el 6 de Jun. de 2019
Hi there, I have this expression:
syms R C w a real
assume(R>0)
assume(C>0)
assume(w>0)
assume(a>0)
z=R/(1+(R*C)*(i*w)^a)
z =
R/(C*R*(w*1i)^a + 1)
I want to get the real part of Z
>> real(z)
ans =
R*real(1/(C*R*(w*1i)^a + 1))
and the imaginary part of Z
>> imag(z)
ans =
R*imag(1/(C*R*(w*1i)^a + 1))
How do I get the true real and Imaginary parts?
Thank you for your time!

Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de Jun. de 2019
simplify( rewrite(real(z), 'exp') )
simplify( rewrite(imag(z), 'exp') )
  1 comentario
Paramonte
Paramonte el 6 de Jun. de 2019
Dear Walter
It worked like a treat. Forever grateful sir!
Regards

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by