heyoka.prod

Contents

heyoka.prod#

heyoka.prod(terms: collections.abc.Sequence[expression]) expression#

Multivariate product.

This function will create a multivariate product containing the arguments in terms. If terms is empty, one will be returned.

Parameters:

terms – the input term(s).

Returns:

the expression representing the product.

Examples:
>>> from heyoka import make_vars, prod
>>> x, y, z = make_vars("x", "y", "z")
>>> prod([x, y, z])
(x * y * z)