[Scilab-users] Queries about vector and complex numbers

Samuel Gougeon sgougeon at free.fr
Wed Jun 25 10:46:12 CEST 2014


Hello,

Le 23/06/2014 17:57, abhishek sharma a écrit :
>
> ...also how to change a cimplex no. From one form to another. I am 
> using scilab version 5.4.1
>
modulus (from cartesian) : abs(c)
phase from cartesian: atan(imag(c), real(c))
real part from polar (m, phase): re = m.*cos(phase)
imaginary part : im = m.*sin(phase)

Beware that [m, phase] = polar(c)  works as expected here only if c is a 
scalar complex.

Regards
Samuel





More information about the users mailing list