hypotenuse: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Macros:Functions:hypot has been moved, it is now a redirect to hypot)
(Moved hypot function information to this page to conform with other abbreviated functions.)
Line 1: Line 1:
#REDIRECT [[hypot]]
{{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=
<source lang="mtmacro" line>
[h: h = hypot(sideA, sideB)]
[h: h = hypotenuse(sideA, sideB)]
</source>
 
 
|examples=
<source lang="mtmacro" line>
[r: hypot(3,4)]
</source>
Returns 5.
}}
[[Category:Mathematical Function]]

Revision as of 19:44, 8 March 2009

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)]
Returns 5.