The author is doing it wrong. Although the illustration is presumably inspired by the Pythagorean theorem, one robot thinks about the formula "a<sub>2</sub>..." rather than "a²..." and the other about an equilateral rather than right-angled triangle. Perhaps a technical co-author could help?