Difference between revisions of "Pyth"
From WikiManual
m (Reverted edit of Retard, changed back to last version by Numsgil) |
|||
Line 1: | Line 1: | ||
+ | Pythagorous Sum Operator '''BINARY''' | ||
+ | Returns the hypotenuse formed by the legs of a triangle with lengths the two top values of the stack. That is: | ||
+ | |||
+ | 3 4 pyth | ||
+ | |||
+ | would place 5 on the stack as per a^2 + b^2 = c^2. |
Revision as of 19:18, 10 October 2005
Pythagorous Sum Operator BINARY
Returns the hypotenuse formed by the legs of a triangle with lengths the two top values of the stack. That is:
3 4 pyth
would place 5 on the stack as per a^2 + b^2 = c^2.