#In the above diagram C=MidPt(A,B) # The midpoint between point A and point B MidPt:=proc(A,B): [ (A[1]+B[1])/2 , (A[2]+B[2])/2 ]: end:
# The midpoint between point A and point B
MidPt:=proc(A,B): [ (A[1]+B[1])/2 , (A[2]+B[2])/2 ]: end:
[ (A[1]+B[1])/2 , (A[2]+B[2])/2 ]: end:
end: