yokome.util.math

yokome.util.math.prod(iterable, start=1)

Multiplies start and the items of an iterable.

Parameters
  • iterable – An iterable over elements on which multiplication may be applied. They are processed from left to right.

  • start – An element on which multiplication may be applied, defaults to 1.

Returns

The result of multiplication.