objectPow extends Op with Product with Serializable
Warning: Unlike a normal power operation, the signum of the
left operand is always preserved. I.e. DC.kr(-0.5).pow(2) will
not output 0.25 but -0.25. This is to avoid problems with
floating point noise and negative input numbers, so
DC.kr(-0.5).pow(2.001) does not result in a NaN, for example.
Linear Supertypes
Serializable, Serializable, Op, Product, Equals, AnyRef, Any
Warning: Unlike a normal power operation, the signum of the left operand is always preserved. I.e.
DC.kr(-0.5).pow(2)
will not output0.25
but-0.25
. This is to avoid problems with floating point noise and negative input numbers, soDC.kr(-0.5).pow(2.001)
does not result in aNaN
, for example.