(self, wrt, otherframe)
return outvec
Takes the partial derivative, with respect to a value, in a frame.

        Returns a Vector.

        Parameters
        ==========

        wrt : Symbol
            What the partial derivative is taken with respect to.
        otherframe : ReferenceFrame
            The ReferenceFrame that the partial derivative is taken in.

        Examples
        ========

        >>> from sympy.physics.vector import ReferenceFrame, Vector, dynamicsymbols
        >>> from sympy import Symbol
        >>> Vector.simp = True
        >>> t = Symbol('t')
        >>> q1 = dynamicsymbols('q1')
        >>> N = ReferenceFrame('N')
        >>> A = N.orientnew('A', 'Axis', [q1, N.y])
        >>> A.x.diff(t, N)
        - q1'*A.z
Takes the partial derivative, with respect to a value, in a frame.
Takes the partial derivative with respect to a value in a frame .
def diff(self, wrt, otherframe):
        """Takes the partial derivative, with respect to a value, in a frame.

        Returns a Vector.

        Parameters
        ==========

        wrt : Symbol
            What the partial derivative is taken with respect to.
        otherframe : ReferenceFrame
            The ReferenceFrame that the partial derivative is taken in.

        Examples
        ========

        >>> from sympy.physics.vector import ReferenceFrame, Vector, dynamicsymbols
        >>> from sympy import Symbol
        >>> Vector.simp = True
        >>> t = Symbol('t')
        >>> q1 = dynamicsymbols('q1')
        >>> N = ReferenceFrame('N')
        >>> A = N.orientnew('A', 'Axis', [q1, N.y])
        >>> A.x.diff(t, N)
        - q1'*A.z

        """

        from sympy.physics.vector.frame import _check_frame
        wrt = sympify(wrt)
        _check_frame(otherframe)
        outvec = Vector(0)
        for i, v in enumerate(self.args):
            if v[1] == otherframe:
                outvec += Vector([(v[0].diff(wrt), otherframe)])
            else:
                if otherframe.dcm(v[1]).diff(wrt) == zeros(3, 3):
                    d = v[0].diff(wrt)
                    outvec += Vector([(d, v[1])])
                else:
                    d = (Vector([v]).express(otherframe)).args[0][0].diff(wrt)
                    outvec += Vector([(d, otherframe)]).express(v[1])
        return outvec
def diff ( self , wrt , otherframe ) : from sympy . physics . vector . frame import _check_frame wrt = sympify ( wrt ) _check_frame ( otherframe ) outvec = Vector ( 0 ) for i , v in enumerate ( self . args ) : if v [ 1 ] == otherframe : outvec += Vector ( [ ( v [ 0 ] . diff ( wrt ) , otherframe ) ] ) else : if otherframe . dcm ( v [ 1 ] ) . diff ( wrt ) == zeros ( 3 , 3 ) : d = v [ 0 ] . diff ( wrt ) outvec += Vector ( [ ( d , v [ 1 ] ) ] ) else : d = ( Vector ( [ v ] ) . express ( otherframe ) ) . args [ 0 ] [ 0 ] . diff ( wrt ) outvec += Vector ( [ ( d , otherframe ) ] ) . express ( v [ 1 ] ) return outvec