Previous Up Next

11.14.3  The length squared of a segment: distance2

The distance2 command takes as arguments two points.

distance2 returns the square of the distance between the points.
Input:

distance2(-1, 1+i)

Output:

5

Previous Up Next