real_part


real_part(n) 
imag_part(n) 
      

Return the real/imaginary component of the complex number n.

Examples:


real_part(rectangular(-2, 7))
// -2

imag_part(rectangular(2/3, -1/2))
// 1/2
      

Also see:

polar


Core Module Index | Contents