The inputs can be complex numbers, points, or lists of points (presented as points or lists of coordinates).
The function returns false if the distance between x and y exceeds Tolerance and true, otherwise.If Projective=>true then 1-cosα is compared with the Tolerance, where α is the angle between x and y.
i1 : areEqual({{-1,1e-7},{1e-7*ii,-1}}, {{-1, 0}, {0, -1}}) o1 = true |
i2 : areEqual({3*ii,2*ii,1+ii}, {-6,-4,-2+2*ii}, Projective=>true) o2 = true |