Calculate the square root of a value.
Source position: mathh.inc line 125
function Sqrt( |
d: ValReal |
):ValReal; |
Sqrt returns the square root of its argument X, which must be positive.
If X is negative, then a run-time error is generated.
|
Calculate the square of a value. |
|
|
Calculate logarithm. |
|
|
Exponentiate. |
Program Example66; { Program to demonstrate the Sqrt function. } begin Writeln (Sqrt(4):0:3); { Prints 2.000 } Writeln (Sqrt(2):0:3); { Prints 1.414 } end.