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.
for all your a^2 b^2 = c^2 needs.
$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
That is a very cool method of implementing a way to use the theorem. Very nice =)
That is one cool function!