[docs]deffree_symbols(self):""" This method returns the symbols that will affect the value of the Product when evaluated. This is useful if one is trying to determine whether a product depends on a certain symbol or not. >>> from sympy import Product >>> from sympy.abc import x, y >>> Product(x, (x, y, 1)).free_symbols set([y]) """ifself.function.is_zeroorself.function==1:returnset()returnself._free_symbols()

@property

[docs]defis_zero(self):"""A Product is zero only if its term is zero. """returnself.term.is_zero