Previous Up Next

11.16.15  Check if four points form a harmonic division: is_harmonic

The is_harmonic command is a Boolean function which takes as arguments four points.

is_harmonic returns 1 if the four points form a harmonic range and returns 0 otherwise.
Input:

is_harmonic(0,2,3/2,3)

Output:

1

Input:

is_harmonic(0,1+i,1,i)

Output:

0

Previous Up Next