PyDocs

Nav

Numeric and Mathematical Modules

sumprod

math

function · Added in 3.12
  • sumprod(p, q)
Return the sum of products of values from two iterables p and q.

Roughly equivalent to:

    sum(map(operator.mul, p, q, strict=True))

For float and mixed int/float inputs, the intermediate products
and sums are computed with extended precision.
0 Examples
No examples for math/sumprod.
See Also
No see-alsos for math/sumprod
0 Notes
No notes for sumprod