hypotenuse: Difference between revisions
Jump to navigation
Jump to search
(New page: #REDIRECT [Macros:Functions:hypot]) |
No edit summary |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | |||
|name=hypotenuse | |||
|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= | |||
<syntaxhighlight lang="mtmacro" line> | |||
[h: h = hypot(sideA, sideB)] | |||
[h: h = hypotenuse(sideA, sideB)] | |||
</syntaxhighlight> | |||
|examples= | |||
<syntaxhighlight lang="mtmacro" line> | |||
[r: hypot(3,4)] | |||
</syntaxhighlight> | |||
Returns 5. | |||
}} | |||
[[Category:Mathematical Function]] |
Latest revision as of 23:59, 15 March 2023
hypotenuse() 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)]