/
Uses symbols and Function for functions of time.
Creates a SymPy UndefinedFunction, which is then initialized as a function of a variable, the default being Symbol(‘t’).
Parameters : | names : str
level : int
Examples : ======= : >>> from sympy.physics.mechanics import dynamicsymbols : >>> from sympy import diff, Symbol : >>> q1 = dynamicsymbols(‘q1’) : >>> q1 : q1(t) : >>> diff(q1, Symbol(‘t’)) : Derivative(q1(t), t) : |
---|
Dot product convenience wrapper for Vector.dot(): Dot product of two vectors.
Returns a scalar, the dot product of the two Vectors
Parameters : | other : Vector
|
---|
Examples
>>> from sympy.physics.mechanics import ReferenceFrame, Vector, dot
>>> from sympy import symbols
>>> q1 = symbols('q1')
>>> N = ReferenceFrame('N')
>>> dot(N.x, N.x)
1
>>> dot(N.x, N.y)
0
>>> A = N.orientnew('A', 'Axis', [q1, N.x])
>>> dot(N.y, A.y)
cos(q1)
Cross product convenience wrapper for Vector.cross(): The cross product operator for two Vectors.
Returns a Vector, expressed in the same ReferenceFrames as self.
Parameters : | other : Vector
|
---|
Examples
>>> from sympy.physics.mechanics import ReferenceFrame, Vector
>>> from sympy import symbols
>>> q1 = symbols('q1')
>>> N = ReferenceFrame('N')
>>> N.x ^ N.y
N.z
>>> A = N.orientnew('A', 'Axis', [q1, N.x])
>>> A.x ^ N.y
N.z
>>> N.y ^ A.x
- sin(q1)*A.y - cos(q1)*A.z
Outer prodcut convenience wrapper for Vector.outer(): Returns a vector, expressed in the other frame.
A new Vector is returned, equalivalent to this Vector, but its components are all defined in only the otherframe.
Parameters : | otherframe : ReferenceFrame
|
---|
Examples
>>> from sympy.physics.mechanics import ReferenceFrame, Vector, dynamicsymbols
>>> q1 = dynamicsymbols('q1')
>>> N = ReferenceFrame('N')
>>> A = N.orientnew('A', 'Axis', [q1, N.y])
>>> A.x.express(N)
cos(q1)*N.x - sin(q1)*N.z
Express convenience wrapper for Vector.express(): Returns a vector, expressed in the other frame.
A new Vector is returned, equalivalent to this Vector, but its components are all defined in only the otherframe.
Parameters : | otherframe : ReferenceFrame
|
---|
Examples
>>> from sympy.physics.mechanics import ReferenceFrame, Vector, dynamicsymbols
>>> q1 = dynamicsymbols('q1')
>>> N = ReferenceFrame('N')
>>> A = N.orientnew('A', 'Axis', [q1, N.y])
>>> A.x.express(N)
cos(q1)*N.x - sin(q1)*N.z
Essential Components (Docstrings)
Enter search terms or a module, class or function name.