(self, argindex=1)
return Derivative(self, self.args[argindex - 1], evaluate=False)
Returns the first derivative of the function.
Returns the first derivative of the function.
Returns the first derivative of the function .
def fdiff(self, argindex=1):
        """
        Returns the first derivative of the function.
        """
        if not (1 <= argindex <= len(self.args)):
            raise ArgumentIndexError(self, argindex)
        if not self.args[argindex - 1].is_Symbol:
            # See issue 4624 and issue 4719 and issue 5600
            arg_dummy = C.Dummy('xi_%i' % argindex)
            arg_dummy.dummy_index = hash(self.args[argindex - 1])
            return Subs(Derivative(
                self.subs(self.args[argindex - 1], arg_dummy),
                arg_dummy), arg_dummy, self.args[argindex - 1])
        return Derivative(self, self.args[argindex - 1], evaluate=False)
def fdiff ( self , argindex = 1 ) : if not ( 1 <= argindex <= len ( self . args ) ) : raise ArgumentIndexError ( self , argindex ) if not self . args [ argindex - 1 ] . is_Symbol : # See issue 4624 and issue 4719 and issue 5600 arg_dummy = C . Dummy ( 'xi_%i' % argindex ) arg_dummy . dummy_index = hash ( self . args [ argindex - 1 ] ) return Subs ( Derivative ( self . subs ( self . args [ argindex - 1 ] , arg_dummy ) , arg_dummy ) , arg_dummy , self . args [ argindex - 1 ] ) return Derivative ( self , self . args [ argindex - 1 ] , evaluate = False )