hypot: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function hypot== Returns the hypotenuse of a right triangle whos other two sides have a length of sideA and sideB. The formula used to calculate the hypotnese is, h^2 = sideA^2 * sideB^2...) |
m (Added MacroFunction template and Mathematical Function category) |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns the hypotenuse of a right triangle whos other two sides have a length of sideA and sideB. The formula used to calculate the hypotnese is, h^2 = sideA^2 * sideB^2. See [[wp:Hypotenuse|Hypotenuse]] | |name=hypot | ||
|description=Returns the hypotenuse of a right triangle whos other two sides have a length of sideA and sideB. The formula used to calculate the hypotnese is, h^2 = sideA^2 * sideB^2. See [[wp:Hypotenuse|Hypotenuse]] | |||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: h = hypot(sideA, sideB)] | [h: h = hypot(sideA, sideB)] | ||
Line 9: | Line 10: | ||
|examples= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r: hypot(3,4)] | [r: hypot(3,4)] | ||
</source> | </source> | ||
Returns 5. | Returns 5. | ||
}} | |||
[[Category:Mathematical Function]] |
Revision as of 04:23, 8 March 2009
hypot() Function
Returns the hypotenuse of a right triangle whos other two sides have a length of sideA and sideB. The formula used to calculate the hypotnese is, h^2 = sideA^2 * sideB^2. See Hypotenuse
Usage
[h: h = hypot(sideA, sideB)]
[h: h = hypotenuse(sideA, sideB)]
Examples
[r: hypot(3,4)]