heyoka.sum

Contents

heyoka.sum#

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

Multivariate summation.

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

Parameters:

terms – the input term(s).

Returns:

the expression representing the summation.

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