Previous Up Next

5.11.5  Modulus of a complex number: abs

abs takes as argument a complex number.
abs returns the modulus of this complex number.
Input:

abs(3+4*i)

Output:

5

Previous Up Next