Liking cljdoc? Tell your friends :D

emmy.mechanics.lagrange


->L-stateclj/s

(->L-state t q qdot & derivs)

Given a time t, coordinate tuple (or scalar) q, velocity tuple (or scalar) qdot and any number of additional higher-order derivative tuples (or scalars), returns a 'Local tuple', i.e., the state expected by a Lagrangian.

Given a time `t`, coordinate tuple (or scalar) `q`, velocity tuple (or scalar)
`qdot` and any number of additional higher-order derivative tuples (or
scalars), returns a 'Local tuple', i.e., the state expected by a Lagrangian.
sourceraw docstring

->localclj/s

Alias for ->L-state.

Alias for [[->L-state]].
sourceraw docstring

->stateclj/s

Alias for ->L-state.

Alias for [[->L-state]].
sourceraw docstring

accelerationclj/s

(acceleration local)

Returns the acceleration element of a local tuple (by convention, the fourth element).

See coordinate for more detail.

Returns the acceleration element of a local tuple (by convention, the fourth
element).

See [[coordinate]] for more detail.
sourceraw docstring

acceleration-tupleclj/s

source

accelerationsclj/s

Alias for acceleration.

Alias for [[acceleration]].
sourceraw docstring

coordinateclj/s

(coordinate local)

A convenience function on local tuples. A local tuple describes the state of a system at a particular time:

[t, q, D q, D^2 q]

representing time, position, velocity (and optionally acceleration etc.)

coordinate returns the q element, which is expected to be a mapping from time to a structure of coordinates.

A convenience function on local tuples. A local tuple describes
the state of a system at a particular time:

```
[t, q, D q, D^2 q]
```

representing time, position, velocity (and optionally acceleration etc.)

[[coordinate]] returns the `q` element, which is expected to be a mapping from
time to a structure of coordinates.
sourceraw docstring

coordinate-tupleclj/s

source

coordinatesclj/s

Alias for coordinate.

Alias for [[coordinate]].
sourceraw docstring

Dtclj/s

source

Dt-procedureclj/s

(Dt-procedure F)
source

Euler-Lagrange-operatorclj/s

(Euler-Lagrange-operator L)
source

F->Cclj/s

(F->C F)

Accepts a coordinate transformation F from a local tuple to a new coordinate structure, and returns a function from local -> local that applies the transformation directly.

F->C handles local tuples of arbitrary length.

Accepts a coordinate transformation `F` from a local tuple to a new coordinate
structure, and returns a function from `local -> local` that applies the
transformation directly.

[[F->C]] handles local tuples of arbitrary length.
sourceraw docstring

find-pathclj/s

(find-path Lagrangian t0 q0 t1 q1 n & {:keys [observe]})

SICM p. 23. The optional parameter values is a callback which will report intermediate points of the minimization.

SICM p. 23. The optional parameter values is a callback which will report
intermediate points of the minimization.
sourceraw docstring

Gammaclj/s

(Gamma q)
(Gamma q n)

Gamma takes a path function (from time to coordinates) to a state function (from time to local tuple).

Gamma takes a path function (from time to coordinates) to a state
function (from time to local tuple).
sourceraw docstring

Gamma-barclj/s

(Gamma-bar f)
source

generalized-LEclj/s

(generalized-LE Lagrangian)
source

L-axisymmetric-topclj/s

(L-axisymmetric-top A C gMR)
source

L-central-polarclj/s

(L-central-polar m U)

Consider planar motion in a central force field, with an arbitrary potential, U, depending only on the radius. The generalized coordinates are polar.

Consider planar motion in a central force field, with an arbitrary potential,
`U`, depending only on the radius. The generalized coordinates are polar.
sourceraw docstring

L-central-rectangularclj/s

(L-central-rectangular m U)
source

L-coupled-harmonicclj/s

(L-coupled-harmonic m k)
source

L-free-particleclj/s

(L-free-particle mass)

The lagrangian of a free particle of mass m. The Lagrangian returned is a function of the local tuple. Since the particle is free, there is no potential energy, so the Lagrangian is just the kinetic energy.

The lagrangian of a free particle of mass m. The Lagrangian
returned is a function of the local tuple. Since the particle
is free, there is no potential energy, so the Lagrangian is
just the kinetic energy.
sourceraw docstring

L-harmonicclj/s

(L-harmonic m k)

The Lagrangian of a simple harmonic oscillator (mass-spring system). m is the mass and k is the spring constant used in Hooke's law. The resulting Lagrangian is a function of the local tuple of the system.

The Lagrangian of a simple harmonic oscillator (mass-spring
system). m is the mass and k is the spring constant used in
Hooke's law. The resulting Lagrangian is a function of the
local tuple of the system.
sourceraw docstring

L-Kepler-polarclj/s

(L-Kepler-polar GM m)
source

L-pendulumclj/s

(L-pendulum g m l)
source

L-rectangularclj/s

(L-rectangular m V)

Lagrangian for a point mass on with the potential energy V(x, y)

Lagrangian for a point mass on with the potential energy V(x, y)
sourceraw docstring

L-sliding-pendclj/s

(L-sliding-pend m1 m2 l g)

Pendulum of mass m2 and length b, hanging from a support of mass m1 that is free to move horizontally (from Groesberg, Advanced Mechanics, p. 72)

Pendulum of mass m2 and length b, hanging from a support of mass m1 that is
free to move horizontally (from Groesberg, Advanced Mechanics, p. 72)
sourceraw docstring

L-two-particleclj/s

(L-two-particle m1 m2 V)
source

L-uniform-accelerationclj/s

(L-uniform-acceleration m g)

The Lagrangian of an object experiencing uniform acceleration in the negative y direction, i.e. the acceleration due to gravity

The Lagrangian of an object experiencing uniform acceleration
in the negative y direction, i.e. the acceleration due to gravity
sourceraw docstring

L3-centralclj/s

(L3-central m Vr)
source

Lagrange-equationsclj/s

(Lagrange-equations L)
(Lagrange-equations L dissipation-fn)
source

Lagrange-equations-1clj/s

Alias for [[Lagrange-equations-first-order]].
sourceraw docstring

Lagrange-equations-first-orderclj/s

(Lagrange-equations-first-order L)
source

Lagrange-equations-operatorclj/s

Alias for [[Euler-lagrange-operator]].

Alias for [[Euler-lagrange-operator]].
sourceraw docstring

Lagrange-interpolation-functionclj/s

(Lagrange-interpolation-function ys xs)

Given ys (a sequence of function values) and xs (an equal-length sequence of function inputs), returns a [[emmy.polynomial/Polynomial]] instance guaranteed to pass through all supplied xs and ys.

The contract for inputs is that (map vector xs ys) should return a sequence of pairs of points.

Given `ys` (a sequence of function values) and `xs` (an equal-length sequence
of function inputs), returns a [[emmy.polynomial/Polynomial]] instance
guaranteed to pass through all supplied `xs` and `ys`.

The contract for inputs is that `(map vector xs ys)` should return a sequence
of pairs of points.
sourceraw docstring

Lagrangianclj/s

(Lagrangian)
(Lagrangian n)

Returns a function signature for a Lagrangian with n degrees of freedom (or an unrestricted number if n is not given).

Useful for constructing Lagrangian literal functions.

Returns a function signature for a Lagrangian with n degrees of freedom (or an
unrestricted number if n is not given).

Useful for constructing Lagrangian literal functions.
sourceraw docstring

Lagrangian->accelerationclj/s

(Lagrangian->acceleration L)
(Lagrangian->acceleration L dissipation-fn)
source

Lagrangian->energyclj/s

(Lagrangian->energy L)
source

Lagrangian->power-lossclj/s

(Lagrangian->power-loss L)
source

Lagrangian->state-derivativeclj/s

(Lagrangian->state-derivative L)
(Lagrangian->state-derivative L dissipation-fn)

Optionally takes a dissipation function.

Optionally takes a dissipation function.
sourceraw docstring

Lagrangian-actionclj/s

(Lagrangian-action L q t1 t2)
(Lagrangian-action L q t1 t2 integration-opts)
source

LEclj/s

Alias for [[Euler-lagrange-operator]].

Alias for [[Euler-lagrange-operator]].
sourceraw docstring

linear-interpolantsclj/s

(linear-interpolants x0 x1 n)
source

literal-Lagrangian-stateclj/s

(literal-Lagrangian-state n-dof)
source

local-state-derivativeclj/s

(local-state-derivative L)

The state derivative of a Lagrangian is a function carrying a state tuple to its time derivative.

Alias for the non-dissipative, single-arity version of Lagrangian->state-derivative.

The state derivative of a Lagrangian is a function carrying a state tuple to
its time derivative.

Alias for the non-dissipative, single-arity version
of [[Lagrangian->state-derivative]].
sourceraw docstring

make-Lagrangianclj/s

(make-Lagrangian kinetic-energy potential-energy)
source

make-pathclj/s

(make-path t0 q0 t1 q1 qs)

SICM p. 23n

SICM p. 23n
sourceraw docstring

momentum-tupleclj/s

source

osculating-pathclj/s

(osculating-path state0)

Given a state tuple (of finite length), reconstitutes the initial segment of the Taylor series corresponding to the state tuple data as a function of t.

Time is measured beginning at the point of time specified in the input state tuple.

Given a state tuple (of finite length), reconstitutes the initial segment of
the Taylor series corresponding to the state tuple data as a function of t.

Time is measured beginning at the point of time specified in the input state
tuple.
sourceraw docstring

p->rclj/s

(p->r tqv)

SICM p. 47. Polar to rectangular coordinates of state.

SICM p. 47. Polar to rectangular coordinates of state.
sourceraw docstring

parametric-path-actionclj/s

(parametric-path-action Lagrangian t0 q0 t1 q1)

SICM p. 23

SICM p. 23
sourceraw docstring

path->state-pathclj/s

source

polar->rectangularclj/s

(polar->rectangular [r phi])
source

Qclj/s

Alias for coordinate.

Alias for [[coordinate]].
sourceraw docstring

Qdotclj/s

Alias for velocity.

Alias for [[velocity]].
sourceraw docstring

Qdotdotclj/s

Alias for acceleration.

Alias for [[acceleration]].
sourceraw docstring

qv->local-pathclj/s

(qv->local-path q v)
source

r->pclj/s

(r->p tqv)
source

r->sclj/s

(r->s local)
source

Rayleigh-dissipationclj/s

(Rayleigh-dissipation k)
source

rectangular->polarclj/s

(rectangular->polar [x y])
source

rectangular->sphericalclj/s

(rectangular->spherical [x y z])
source

s->rclj/s

(s->r local)

SICM p. 83

SICM p. 83
sourceraw docstring

spherical->rectangularclj/s

(spherical->rectangular [r theta phi])
source

state->n-dofclj/s

(state->n-dof state)
source

state->qclj/s

Alias for coordinate.

Alias for [[coordinate]].
sourceraw docstring

state->qddotclj/s

Alias for acceleration.

Alias for [[acceleration]].
sourceraw docstring

state->qdotclj/s

Alias for velocity.

Alias for [[velocity]].
sourceraw docstring

state->tclj/s

Alias for time.

Alias for [[time]].
sourceraw docstring

T3-sphericalclj/s

(T3-spherical m)
source

timeclj/s

(time local)

Extract the time slot from a state tuple.

See coordinate for more detail.

Extract the time slot from a state tuple.

See [[coordinate]] for more detail.
sourceraw docstring

velocitiesclj/s

Alias for velocity.

Alias for [[velocity]].
sourceraw docstring

velocityclj/s

(velocity local)

Returns the velocity element of a local tuple (by convention, the third element).

See coordinate for more detail.

Returns the velocity element of a local tuple (by convention, the third
element).

See [[coordinate]] for more detail.
sourceraw docstring

velocity-tupleclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close