The is_square command is a Boolean function which takes as argument a geometric object or four points.
is_square returns 1 if the object (or quadrilateral
determined by the four points) is a square and returns 0
otherwise.
Input:
Output:
Input:
then:
Output:
Input:
Output:
Note that K[0] is a square since K is a list made
of a square and vertices C and D. Entering
affix(C,D) returns -1-i,1-i.
Input:
Output: