[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function Sqr (i: integer type): integer type; |
function Sqr (x: real type): real type; |
function Sqr (z: Complex type): Complex type; |
Returns the square of the argument:
function Sqr (x: some type): some type; begin Sqr := x * x { or: x pow 2 } end; |
The function `Sqr' is defined in ISO-7185 Pascal; its application to complex values is defined in ISO-10206 Extended Pascal.
program SqrDemo; |
section 9.200 pow, section 9.261 SqRt, section 9.1 Abs, section 8.3 Operators.