scaledProdSum

Multiplies results of xi + yi using a higher precision, rounding only once at the end.

@IEEECompliant("scaledProdSum", 47)
D
scaledProdSum
(
D
)
(
const(D)[] x
,
const(D)[] y
,
out int scale
)

Return Value

Type: D

(x0 + y0) * (x1 + y1) * ... * (xn + yn) Notes: To avoid overflow, an additional scale is provided that the final result is to be multiplied py 10scale.<br/> If x and y arrays are not of the same length, operation is performed for min(x.length, y.length);

Throws

InvalidOperationExceptionany x is signaling NaN
InvalidOperationExceptionany xi and yi are infinite and with different sign
InvalidOperationExceptionthere is one infinite element and one xi + yi == 0.0
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta