Did I find the right examples for you? yes no Crawl my project Python Jobs

All Samples(2) | Call(0) | Derive(0) | Import(2)

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 Names of the dynamic symbols you want to create; works the same way as(more...)

def dynamicsymbols(names, level=0): """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 Names of the dynamic symbols you want to create; works the same way as inputs to symbols level : int Level of differentiation of the returned function; d/dt once of t, twice of t, etc. 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) """ esses = symbols(names, cls=Function) t = dynamicsymbols._t if hasattr(esses, '__iter__'): esses = [reduce(diff, [t]*level, e(t)) for e in esses] return esses else: return reduce(diff, [t]*level, esses(t))

**sympy**(Download)

'Lagrangian'] from sympy.physics.mechanics.essential import (Vector, Dyadic, ReferenceFrame, MechanicsStrPrinter, MechanicsPrettyPrinter,

src/s/y/sympy-HEAD/sympy/physics/mechanics/kane.py

**sympy**(Download)

from sympy.core.compatibility import reduce from sympy.utilities import default_sort_key from sympy.physics.mechanics.essential import ReferenceFrame, dynamicsymbols from sympy.physics.mechanics.particle import Particle from sympy.physics.mechanics.point import Point