Lagrangian mechanics requires a configuration space Q, and a function L:RxQxQ' --> R
Mechanical systems have state at each instant. The state is the information required, along with the equations of motion, to determine the future of the system.
At every instant a system has a kinematic state, which has the time, the configuration, and the rate of change of the configuration. Lagrangian mechanics is formulated in terms of the kinematic state.
Kinematic states and their derivatives are represented as Scheme vectors, with components time, configuration, and derivatives.
Aliases for the selectors above, included for parity with scmutils:
Paths in the configuration manifold are functions that give a configuration for each time. From such a path we can construct a path in the kinematic state space. If such a path is described in terms of generalized coordinates, we have
A Lagrangian is an example of an L-function. An L-function takes a scalar argument and 2 vector arguments (t, q, q-dot). An L-function produces a scalar result.
These should arguably live in their own place.
Coupled harmonic oscillators.
Consider a simple pendulum with Rayleigh dissipation:
Given a Lagrangian, we can obtain Lagrange's equations of motion.
Given a Lagrangian, we can make an energy function on (t, Q, Qdot).
On a trajectory there may be power lost (if dissipation) The following produces the power lost.
An alternative method allows taking derivatives in the construction of the Lagrangian.
The following transformations are applicable to configuration coordinates.