Sqr
arithmetic-functions square number (a2)
syntax
- sqr(a)
definition
sqr(a) results in the square number of the values of data-item a, synonym for a2.
applies to
Data item or unit with Numeric value-type
example
attribute<float32> sqrA (ADomain) := sqr(A);
A | sqrA |
---|---|
0 | 0 |
1 | 1 |
-2 | 4 |
3.6 | 12.96 |
999 | 998001 |
ADomain, nr of rows = 5