ptheorem.py =========== .. module:: ptheorem .. class:: theorem .. method:: setLeg(number, new) Sets leg ``number`` to ``new``. .. method:: getLeg(number) Returns the length of leg ``number``. If it has not been set but the hypotenuse and the other have been, calculate the length. .. method:: setHypotenuse(new) Sets the hypotenuse to ``new``. .. method:: getHypotenuse() Returns the hypotenuse. If it has not been set but the two legs have, calculate the length of the hypotenuse.