hypot

From RPTools Wiki
Revision as of 00:26, 2 December 2008 by Craig (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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. See Hypotenuse

Usage

[h: h = hypot(sideA, sideB)]
[h: h = hypotenuse(sideA, sideB)]


Examples

[r: hypot(3,4)]

Returns 5.