ItIsSquare:=proc(Q,T,S,R): ItIsZero ( DeSq (Q,T) - DeSq (T,S)) and ItIsZero ( DeSq (Q,T) - DeSq (Q,R)) and ItIsZero ( DeSq (Q,T) - DeSq (R,S)) and ItIsZero (Slope (Q,R)*Slope (Q,T) + 1) : end:
ItIsZero ( DeSq (Q,T) - DeSq (T,S)) and ItIsZero ( DeSq (Q,T) - DeSq (Q,R)) and ItIsZero ( DeSq (Q,T) - DeSq (R,S)) and ItIsZero (Slope (Q,R)*Slope (Q,T) + 1) : end:
end: