This is an old revision of the document!
If you use the power function the exponent must be an integer, which is not required if you uses the ** operator. However, with the ** operator the exponent must be a positive number to avoid an compilation error. So:
scalar test; test = (-3)**4; * note: this is not the same as -3**4,which will be treated as -(3**4) display test;
will give you an error:
**** Exec Error at line 2: rPower: FUNC DOMAIN: x**y, x < 0
This formulation will work:
scalar test; test = power(3,4); display test;