hypot: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added MacroFunction template and Mathematical Function category)
m (Macros:Functions:hypot moved to hypot: Moved out of Macros namespace)
(No difference)

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