[back] [prev] [next] [index] [root]

 


Arg

Returns the argument of a complex number.

Syntax:

phi := Arg(z);

real
  phi  
complex
  z  

Description:

Returns \phi\in(-\pi,\pi] for z=|z|e^{i\phi}\inC.


Example:

Compute the argument of i

kash> z := Comp(0, 1);
1*i
kash> Arg(z);
1.570796326794896619231321691639751442098584699688



Example:

Compute the argument of -1

kash> z := Comp(-1, 0);
-1
kash> Arg(z);
> 3.141592653589793238462643383279502884197169399375


<- back[back] [prev] [next] [index] [root]