[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function SqRt (x: real type): real type; |
function SqRt (z: Complex type): Complex type; |
Returns the positive square root of the argument.
For real arguments, it is an error if the argument is negative.
For complex arguments, `SqRt' returns the principal value of the root of the argument, i.e. the root with positive real part, or, if the real part is zero, that one with positive imaginary part.
The function `SqRt' is defined in ISO-7185 Pascal; its application to complex values is defined in ISO-10206 Extended Pascal.
program SqRtDemo; |
section 9.200 pow, section 9.260 Sqr, section 8.3 Operators.