pow

Compute the value of xy

  1. D pow(D x, T n)
  2. auto pow(D1 x, D2 x)
    @IEEECompliant("pow", 42)
    @IEEECompliant("powr", 42)
    pow
    (
    D1
    D2
    )
    (
    auto const ref D1 x
    ,
    auto const ref D2 x
    )

Throws

InvalidOperationExceptionx is signaling NaN
DivisionByZeroExceptionx = ±0.0 and y < 0.0
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Special values

xypow(x, y)
sNaNanyNaN
any0+1.0
NaNanyNaN
±∞any±∞
±0.0odd n < 0±∞
±0.0even n < 0+∞
±0.0odd n > 0±0.0
±0.0even n > 0+0.0

Meta