Difference between revisions of "Hypot"

From SCAR Divi Manual
Jump to: navigation, search
(Undo revision 900 by Freddy (talk))
Line 23: Line 23:
  
 
Output:
 
Output:
  5.00000000000000E+0000
+
5.00000000000000E+0000
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Revision as of 21:57, 14 July 2011

Definition

function Hypot(X, Y: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Returns the length of the hypotenuse of a right triangle. The lengths of the sides adjacent to the right angle are given by X and Y.

Sqrt(X^2 + Y^2)

Example

uses
  Math;

begin
  Print(Hypot(3, 4));
end.

Output:

5.00000000000000E+0000