In his book Mathematical Circus, Martin Gardner posed a beautifully symmetric
formula satisfied by distances between an arbitrary point and vertices of an equilateral
triangle. That is, if a, b, and c are the distances between a point P and three
vertices of an equilateral triangle of side d, the relation