hypot: Difference between revisions

From RPTools Wiki
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 (Conversion script moved page Hypot to hypot: Converting page titles to lowercase)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Function hypot==
#REDIRECT [[hypotenuse]]
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]]
[[Category:Macro Function]]
 
[[Category:Mathematical Function]]
===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.

Latest revision as of 22:56, 9 February 2023

Redirect to: