Calculates the distance squared between two complex numbers.
// Returns 25 (squared distance from origin to 3+4i)const distanceSquared = Chalkboard.comp.distsq(Chalkboard.comp.init(0, 0), Chalkboard.comp.init(3, 4)); Copy
// Returns 25 (squared distance from origin to 3+4i)const distanceSquared = Chalkboard.comp.distsq(Chalkboard.comp.init(0, 0), Chalkboard.comp.init(3, 4));
The first complex number
The second complex number
Calculates the distance squared between two complex numbers.
Example