Hypot

From SCAR Divi Manual
Revision as of 15:18, 6 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Hypot(X, Y: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the leng...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

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

Output:

5