(self, n, x, *previous_terms)
return self.subs(x, _x).diff(_x, n).subs(_x, x).subs(x, 0) * x**n / C.factorial(n)
General method for the taylor term.

        This method is slow, because it differentiates n-times. Subclasses can
        redefine it to make it faster by using the "previous_terms".
General method for the taylor term.
General method for the taylor term .
def taylor_term(self, n, x, *previous_terms):
        """General method for the taylor term.

        This method is slow, because it differentiates n-times. Subclasses can
        redefine it to make it faster by using the "previous_terms".
        """
        x = sympify(x)
        _x = C.Dummy('x')
        return self.subs(x, _x).diff(_x, n).subs(_x, x).subs(x, 0) * x**n / C.factorial(n)
def taylor_term ( self , n , x , * previous_terms ) : x = sympify ( x ) _x = C . Dummy ( 'x' ) return self . subs ( x , _x ) . diff ( _x , n ) . subs ( _x , x ) . subs ( x , 0 ) * x ** n / C . factorial ( n )