ptheorem.py

class ptheorem.theorem[source]
setLeg(number, new)[source]
Sets leg number to new.
getLeg(number)[source]

Returns the length of leg number. If it has not been set but the hypotenuse and the other have been, calculate the length.

setHypotenuse(new)[source]

Sets the hypotenuse to new.

getHypotenuse()[source]

Returns the hypotenuse. If it has not been set but the two legs have, calculate the length of the hypotenuse.

Previous topic

multiples.py

This Page