sum

Sums elements of x using a higher precision, rounding only once at the end.</br>

@IEEECompliant("sum", 47)
D
sum
(
D
)
(
const(D)[] x
)

Return Value

Type: D

x0 + x1 + ... + xn

Throws

InvalidOperationExceptionany x is signaling NaN
InvalidOperationExceptionthere are two infinite elements with different sign
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta