real and imaginary part of complex number
Afficher commentaires plus anciens
Hi,
I'm trying to get the real and imaginary part of a formular in a limited range of a parameter n.
how do I add in my formular
syms n real
imag (1i^n)
that 0 < n < 1 ?
Thanks a lot!
10 commentaires
madhan ravi
le 15 Juil 2019
How about:
assume(0<n<1) % after the first line
Bruno Luong
le 15 Juil 2019
btw
imag (1i^n)
is
sin(pi*n/2)
Niclas
le 15 Juil 2019
Bruno Luong
le 15 Juil 2019
Modifié(e) : Bruno Luong
le 15 Juil 2019
I'm interested in the way to solve it.
Just like Torsen's development. So you'll see that is true for any n that is real, the assumption that (0<n<1) is irrelevant.
Niclas
le 15 Juil 2019
Torsten
le 15 Juil 2019
r is real - it is the length of the vector from the origin to z.
Thus
real(r^n) = r^n, imag(r^n) = 0.
Niclas
le 16 Juil 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Descriptive Statistics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!