poly

Calculates a0 + a1x + a2x2 + .. + anxn

poly
(
D1
D2
)
(
auto const ref D1 x
,
const(D2)[] a
)
if (
isDecimal!(D1, D2)
)

Throws

InvalidOperationExceptionx is signaling NaN or any ai is signaling NaN
InvalidOperationExceptionx is ±∞ and any ai is ±0.0
InvalidOperationExceptionx is ±0.0 and any ai is ±∞
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta