Previous Up Next

13.14.10  The length of a vector: abs

The abs command finds the absolute value of a number or the length of a vector (see also Section 5.16.2 and Section 5.10.4).

Example.

Input:

abs(1+i)

or:

abs(point(1+2*i) - point(i))

Output:

2

Previous Up Next