Hypot function
Return hypotenuse of triangle.
Declaration
function Hypot(x: Float; y: Float): FloatDescription
Hypot returns the hypotenuse of the triangle where the sides
adjacent to the square angle have lengths
x and
y.
The function uses Pythagoras' rule for this.Errors
None.
Example: ex17
Program Example17;
{ Program to demonstrate the hypot function. }
Uses math;
begin
Writeln(hypot(3,4)); // should be 5
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
