Difference between revisions of "Pyth"
From WikiManual
m (Reverted edit of Retard, changed back to last version by Numsgil) |
m (example) |
||
| Line 1: | Line 1: | ||
Pythagorous Sum Operator '''BINARY''' | Pythagorous Sum Operator '''BINARY''' | ||
| − | Returns the hypotenuse formed by the legs of a triangle with lengths the two top values of the stack. | + | Returns the hypotenuse formed by the legs of a triangle with lengths the two top values of the stack. |
| + | |||
| + | ==[[Operator]]s:== | ||
| + | {{Advanced Commands}} | ||
| + | |||
| + | ==Example:== | ||
3 4 pyth | 3 4 pyth | ||
| − | would place 5 on the stack as per | + | would place 5 on the stack as per + = |
| + | |||
| + | 3 3 mult 4 4 mult add sqr | ||
| + | |||
| + | c | ||
Revision as of 15:19, 31 January 2006
Pythagorous Sum Operator BINARY
Returns the hypotenuse formed by the legs of a triangle with lengths the two top values of the stack.
Operators:
Advanced Commands:The following commands are not supported in versions earlier 2.46: |
Example:
3 4 pyth
3 3 mult 4 4 mult add sqr