real(z)
imag(z)
conj(z)
angle(z)
angle
returns in radians.angle
function is simply defined as atan2(Im(z), Re(z))
.Mod
, abs
z <- c(0, 1, 1+1i, 1i)
real(z) # Re(z)
imag(z) # Im(z)
conj(z) # Conj(z)
abs(z) # Mod(z)
angle(z)
Run the code above in your browser using DataLab