Pythagorean theorem function

for all your a^2 b^2 = c^2 needs.

Usage

$precision is how much it rounds off at the decimal point. Only works for right triangles. Put false in the a, b, or c value that you are trying to find.

 

Comments

Posted on 21.07.2008 04:41 by curtis

That is a very cool method of implementing a way to use the theorem. Very nice =)

Posted on 01.07.2008 10:15 by steve

That is one cool function!