Example #1
0
    def free_symbols(self):
        """
        This method returns the symbols that will exist when the
        summation is evaluated. This is useful if one is trying to
        determine whether a sum is dependent on a certain
        symbol or not.

        >>> from sympy import Sum
        >>> from sympy.abc import x, y
        >>> Sum(x, (x, y, 1)).free_symbols
        set([y])
        """
        from sympy.integrals.integrals import _free_symbols

        return _free_symbols(self.function, self.limits)
Example #2
0
    def free_symbols(self):
        """
        This method returns the symbols that will exist when the
        summation is evaluated. This is useful if one is trying to
        determine whether a sum is dependent on a certain
        symbol or not.

        >>> from sympy import Sum
        >>> from sympy.abc import x, y
        >>> Sum(x, (x, y, 1)).free_symbols
        set([y])
        """
        from sympy.integrals.integrals import _free_symbols

        return _free_symbols(self.function, self.limits)
Example #3
0
    def free_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])
        """
        from sympy.integrals.integrals import _free_symbols
        if self.function.is_zero or self.function == 1:
            return set()
        return _free_symbols(self)
Example #4
0
    def free_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])
        """
        from sympy.integrals.integrals import _free_symbols
        if self.function.is_zero or self.function == 1:
            return set()
        return _free_symbols(self)
Example #5
0
 def free_symbols(self):
     from sympy.integrals.integrals import _free_symbols
     if self.function.is_zero:
         return set()
     return _free_symbols(self)
Example #6
0
 def free_symbols(self):
     from sympy.integrals.integrals import _free_symbols
     if self.function.is_zero:
         return set()
     return _free_symbols(self)