sumSquare

Sums squares of elements of x using a higher precision, rounding only once at the end.

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

Return Value

Type: D

x02 + x12 + ... + xn2

Throws

InvalidOperationExceptionany x is signaling NaN
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta