Liking cljdoc? Tell your friends :D
Clojure only.

sicmutils.env

The purpose of these definitions is to let the import of sicmutils.env bring all the functions in the book into scope without qualification, so you can just start working with examples.

The purpose of these definitions is to let the import of sicmutils.env
bring all the functions in the book into scope without qualification,
so you can just start working with examples.
raw docstring

*clj

(* & args)
source

+clj

(+ & args)
source

-clj

(- & args)
source

->infixclj

Converts an S-expression to printable infix form. Numeric exponents are written as superscripts. Partial derivatives get subscripts.

Converts an S-expression to printable infix form. Numeric exponents are
written as superscripts. Partial derivatives get subscripts.
sourceraw docstring

->localclj

source

/clj

(/ & args)
source

abscljmultimethod

generic abs

generic abs
sourceraw docstring

acoscljmultimethod

generic acos

generic acos
sourceraw docstring

alternate-anglesclj

source

angleclj

(angle a)
source

asincljmultimethod

generic asin

generic asin
sourceraw docstring

atancljmultimethod

generic atan

generic atan
sourceraw docstring

basis->basis-over-mapclj

(basis->basis-over-map mu:N->M basis-on-M)
source

basis->oneform-basisclj

(basis->oneform-basis b)

Extract the dual basis from the given basis object.

Extract the dual basis from the given basis object.
sourceraw docstring

basis->vector-basisclj

(basis->vector-basis b)

Extract the vector basis from the given basis object.

Extract the vector basis from the given basis object.
sourceraw docstring

Cartan-transformclj

(Cartan-transform cartan basis-prime)
source

chartclj

(chart coordinate-system)
source

Christoffel->Cartanclj

(Christoffel->Cartan Christoffel)
source

column-matrixclj

source

commutatorclj

(commutator o p)
source

compatible-shapeclj

(compatible-shape s)

Return an object compatible for multiplication with the given one, with the slots filled with gensyms.

Return an object compatible for multiplication with the given one, with
the slots filled with gensyms.
sourceraw docstring

complexclj

(complex re)
(complex re im)

Construct a complex number from real, or real and imaginary, components.

Construct a complex number from real, or real and imaginary, components.
sourceraw docstring

componentclj

(component & indices)

Given an access chain (a sequence of indices), return a function of structures that will retrieve that corresponding element.

Given an access chain (a sequence of indices), return a function of
structures that will retrieve that corresponding element.
sourceraw docstring

components->oneform-fieldclj

(components->oneform-field components coordinate-system & [name])
source

components->vector-fieldclj

(components->vector-field components coordinate-system & [name])
source

composeclj

(compose & fns)

Compose is like Clojure's standard comp, but for this system we like to know the arity of our functions, so that we can calculate their derivatives with structure, etc. The arity of a composition is simply the arity of its rightmost (that is, first to be applied) function term.

Compose is like Clojure's standard comp, but for this system we
like to know the arity of our functions, so that we can calculate
their derivatives with structure, etc. The arity of a composition is
simply the arity of its rightmost (that is, first to be applied)
function term.
sourceraw docstring

compositional-canonical?clj

(compositional-canonical? C H)

p.324

p.324
sourceraw docstring

conjugateclj

(conjugate a)
source

coordinateclj

(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.) 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.) Returns the q element, which is expected to be a mapping
from time to a structure of coordinates
sourceraw docstring

coordinate-system->basisclj

(coordinate-system->basis coordinate-system)

Return the standard basis object for the coordinate system.

Return the standard basis object for the coordinate system.
sourceraw docstring

coordinate-system->oneform-basisclj

(coordinate-system->oneform-basis coordinate-system)
source

coordinate-system->vector-basisclj

(coordinate-system->vector-basis coordinate-system)
source

coordinate-tupleclj

(coordinate-tuple & xs)
source

coordinatizeclj

(coordinatize v coordinate-system)
source

coscljmultimethod

generic cos

generic cos
sourceraw docstring

cotclj

source

covariant-derivativeclj

(covariant-derivative Cartan)
(covariant-derivative Cartan map)
source

cross-productcljmultimethod

generic cross-product

generic cross-product
sourceraw docstring

cscclj

source

cubecljmultimethod

generic cube

generic cube
sourceraw docstring

dclj

source

Dclj

Derivative operator. Produces a function whose value at some point can multiply an increment in the arguments, to produce the best linear estimate of the increment in the function value.

Derivative operator. Produces a function whose value at some point can
multiply an increment in the arguments, to produce the best linear estimate
of the increment in the function value.
sourceraw docstring

definite-integralclj

(definite-integral f
                   a
                   b
                   &
                   {:keys [compile method max-evaluations relative-accuracy
                           absolute-accuracy min-iterations max-iterations
                           points]
                    :or {compile false
                         method :romberg
                         max-evaluations 32768
                         relative-accuracy 1.0E-6
                         absolute-accuracy 1.0E-15
                         min-iterations 3
                         max-iterations 32
                         points 16}})
source

determinantcljmultimethod

generic determinant

generic determinant
sourceraw docstring

differentialclj

(differential mu:N->M)

FDG p.72

FDG p.72
sourceraw docstring

downclj

(down & xs)

Construct a down (covariant) tuple from the arguments.

Construct a down (covariant) tuple from the arguments.
sourceraw docstring

elliptic-fclj

(elliptic-f phi k)
source

Euler-anglesclj

source

Euler-Lagrange-operatorclj

(Euler-Lagrange-operator L)
source

evolutionclj

(evolution order)

We can use the coordinatized vector field to build an evolution along an integral curve.

We can use the coordinatized vector field to build an evolution along an
integral curve.
sourceraw docstring

evolveclj

(evolve state-derivative & state-derivative-args)

evolve takes a state derivative function constructor and its arguments, and returns an integrator via make-integrator. In particular, the returned function accepts a callback function which will be invoked at intermediate grid points of the integration.

evolve takes a state derivative function constructor and its
arguments, and returns an integrator via make-integrator. In
particular, the returned function accepts a callback function which
will be invoked at intermediate grid points of the integration.
sourceraw docstring

expcljmultimethod

generic exp

generic exp
sourceraw docstring

exptcljmultimethod

generic expt

generic expt
sourceraw docstring

F->Cclj

(F->C F)
source

F->CTclj

(F->CT F)

A transformation of configuration coordinates F to a procedure implementing a transformation of phase-space coordinates (p. 320)

A transformation of configuration coordinates F to a procedure
implementing a transformation of phase-space coordinates (p. 320)
sourceraw docstring

find-pathclj

(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

form-field->form-field-over-mapclj

(form-field->form-field-over-map mu:N->M)
source

Gammaclj

(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

(Gamma-bar f)
source

Hamilton-equationsclj

(Hamilton-equations Hamiltonian)
source

Hamiltonianclj

(Hamiltonian & n)

Return SICM-style function signature for a Hamiltonian with n degrees of freedom (or 1 if n is not given). Useful for constructing Hamiltonian literal functions.

Return SICM-style function signature for a Hamiltonian with n
degrees of freedom (or 1 if n is not given). Useful for constructing
Hamiltonian literal functions.
sourceraw docstring

Hamiltonian->state-derivativeclj

(Hamiltonian->state-derivative Hamiltonian)
source

imag-partclj

(imag-part a)
source

integrate-state-derivativeclj

(integrate-state-derivative state-derivative
                            state-derivative-args
                            initial-state
                            t1
                            dt)

A wrapper for evolve, which is more convenient when you just want a vector of (time, state) pairs over the integration interval instead of having to deal with a callback. Integrates the supplied state derivative (and its argument package) from [0 to t1] in steps of size dt

A wrapper for evolve, which is more convenient when you just
want a vector of (time, state) pairs over the integration interval
instead of having to deal with a callback. Integrates the supplied
state derivative (and its argument package) from [0 to t1] in steps
of size dt
sourceraw docstring

interior-productclj

(interior-product V)
source

invertcljmultimethod

generic invert

generic invert
sourceraw docstring

iterated-mapclj

(iterated-map f n)

f is a function of (x y continue fail), which calls continue with the values of x' y' that follow x y in the mapping. Returns a map of the same shape that iterates the iterated map n times before invoking the continuation, or invokes the fail continuation if the inner map fails.

f is a function of (x y continue fail), which calls continue with
the values of x' y' that follow x y in the mapping. Returns a map of
the same shape that iterates the iterated map n times before
invoking the continuation, or invokes the fail continuation if the
inner map fails.
sourceraw docstring

Jacobianclj

(Jacobian to-basis from-basis)

Compute the Jacobian of transition from from-basis to to-basis.

Compute the Jacobian of transition from from-basis to to-basis.
sourceraw docstring

Lagrange-equationsclj

(Lagrange-equations Lagrangian)
source

Lagrange-equations-first-orderclj

(Lagrange-equations-first-order L)
source

Lagrange-interpolation-functionclj

(Lagrange-interpolation-function ys xs)
source

Lagrangian->energyclj

(Lagrangian->energy L)
source

Lagrangian->Hamiltonianclj

source

Lagrangian->state-derivativeclj

(Lagrangian->state-derivative L)

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

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

Lagrangian-actionclj

(Lagrangian-action L q t1 t2)
source

Legendre-transformclj

source

let-coordinatescljmacro

(let-coordinates bindings & body)

Example: (let-coordinates [[x y] R2-rect [r theta] R2-polar] body...)

Example:
(let-coordinates [[x y] R2-rect
                  [r theta] R2-polar]
  body...)
sourceraw docstring

Lie-derivativecljmultimethod

generic Lie-derivative

generic Lie-derivative
sourceraw docstring

Lie-transformclj

(Lie-transform H t)

p. 428

p. 428
sourceraw docstring

linear-interpolantsclj

(linear-interpolants x0 x1 n)
source

literal-functioncljmacro

(literal-function f)
(literal-function f sicm-signature)
(literal-function f domain range)
source

literal-manifold-functionclj

(literal-manifold-function name coordinate-system)
source

literal-manifold-mapclj

(literal-manifold-map name source target)
source

literal-oneform-fieldclj

(literal-oneform-field name coordinate-system)
source

literal-vector-fieldclj

(literal-vector-field name coordinate-system)
source

logcljmultimethod

generic log

generic log
sourceraw docstring

m->sclj

(m->s ls m rs)

Convert the matrix m into a structure S, guided by the requirement that (* ls S rs) should be a scalar

Convert the matrix m into a structure S, guided by the requirement that (* ls S rs)
should be a scalar
sourceraw docstring

m:dimensionclj

source

m:transposeclj

source

magnitudecljmultimethod

generic magnitude

generic magnitude
sourceraw docstring

make-Christoffelclj

(make-Christoffel symbols basis)
source

maprclj

(mapr f & structures)

Return a structure with the same shape as s but with f applied to each primitive (that is, not structural) component.

Return a structure with the same shape as s but with f applied to
each primitive (that is, not structural) component.
sourceraw docstring

matrix-by-rowsclj

source

minimizeclj

(minimize f a b)
(minimize f a b observe)

Find the minimum of the function f: R -> R in the interval [a,b]. If observe is supplied, will be invoked with the iteration count and the values of x and f(x) at each search step.

Find the minimum of the function f: R -> R in the interval [a,b]. If
observe is supplied, will be invoked with the iteration count and the
values of x and f(x) at each search step.
sourceraw docstring

momentumclj

(momentum H-state)

See coordinate: this returns the momentum element of a Hammilton state tuple (by convention, the element at index 2).

See coordinate: this returns the momentum element of a
Hammilton state tuple (by convention, the element at index 2).
sourceraw docstring

momentum-tupleclj

(momentum-tuple & ps)
source

negatecljmultimethod

generic negate

generic negate
sourceraw docstring

orientationclj

(orientation s)

Return the orientation of s, either ::up or ::down.

Return the orientation of s, either ::up or ::down.
sourceraw docstring

osculating-pathclj

(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

(p->r [_ [r φ]])

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

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

partialclj

(partial & selectors)

A shim. Dispatches to partial differentiation when all the arguments are integers; falls back to the core meaning (partial function application) otherwise.

A shim. Dispatches to partial differentiation when all the arguments
are integers; falls back to the core meaning (partial function application)
otherwise.
sourceraw docstring

piclj

source

pointclj

(point coordinate-system)
source

Poisson-bracketclj

(Poisson-bracket f g)
source

polar-canonicalclj

(polar-canonical alpha)

p.327

p.327
sourceraw docstring

principal-valueclj

source

source

pullbackclj

(pullback mu:N->M)
(pullback mu:N->M mu-inverse:M->N)
source

pushforward-vectorclj

(pushforward-vector mu:N->M mu-inverse:M->N)
source

qp-submatrixclj

source

R1-rectclj

source

R2-polarclj

source

R2-rectclj

source

R3-cylclj

source

R3-rectclj

source

real-partclj

(real-part a)
source

refclj

(ref a & as)

A shim so that ref can act like nth in SICM contexts, as clojure core ref elsewhere.

A shim so that ref can act like nth in SICM contexts, as clojure
core ref elsewhere.
sourceraw docstring

Rxclj

(Rx α)

Returns a function which rotates a vector α radians about the x axis.

Returns a function which rotates a vector α radians about the x axis.
sourceraw docstring

Ryclj

(Ry α)

Returns a function which rotates a vector α radians about the y axis.

Returns a function which rotates a vector α radians about the y axis.
sourceraw docstring

Rzclj

(Rz α)

Returns a function which rotates a vector α radians about the z axis.

Returns a function which rotates a vector α radians about the z axis.
sourceraw docstring

s->mclj

(s->m ls ms rs)

Convert the structure ms, which would be a scalar if the (compatible) multiplication (* ls ms rs) were performed, to a matrix.

Convert the structure ms, which would be a scalar if the (compatible) multiplication
(* ls ms rs) were performed, to a matrix.
sourceraw docstring

s->rclj

(s->r [_ [r θ φ] _])

SICM p. 83

SICM p. 83
sourceraw docstring

S2-Riemannclj

source

S2-sphericalclj

source

S2-stereographicclj

source

secclj

source

seriesclj

source

series:sumclj

source

sicmutils-repl-initclj

(sicmutils-repl-init)
source

simplifycljmultimethod

source

sincljmultimethod

generic sin

generic sin
sourceraw docstring

SO3clj

source

sqrtcljmultimethod

generic sqrt

generic sqrt
sourceraw docstring

squarecljmultimethod

generic square

generic square
sourceraw docstring

standard-mapclj

(standard-map K)
source

state-advancerclj

(state-advancer state-derivative & state-derivative-args)

state-advancer takes a state derivative function constructor followed by the arguments to construct it with. The state derivative function is constructed and an integrator is produced which takes the initial state, target time, and error tolerance as arguments. The final state is returned. The state derivative is expected to map a structure to a structure of the same shape, and is required to have the time parameter as the first element.

state-advancer takes a state derivative function constructor
followed by the arguments to construct it with. The state derivative
function is constructed and an integrator is produced which takes
the initial state, target time, and error tolerance as
arguments. The final state is returned. The state derivative is
expected to map a structure to a structure of the same shape,
and is required to have the time parameter as the first element.
sourceraw docstring

structure->vectorclj

(structure->vector s)

Return the structure in unoriented vector form.

Return the structure in unoriented vector form.
sourceraw docstring

structure?clj

(structure? s)

True if s is a structure.

True if s is a structure.
sourceraw docstring

symplectic-transform?clj

(symplectic-transform? C)

p. 334

p. 334
sourceraw docstring

symplectic-unitclj

(symplectic-unit n)

p. 334 (used, but not defined there)

p. 334 (used, but not defined there)
sourceraw docstring

tancljmultimethod

generic tan

generic tan
sourceraw docstring

tex$clj

(tex$ expr)

Render expression in a form convenient for rendering with clojupyter. In this case, we want the TeX material wrapped with dollar signs.

Render expression in a form convenient for rendering with clojupyter.
In this case, we want the TeX material wrapped with dollar signs.
sourceraw docstring

tex$$clj

(tex$$ expr)

Render expression in a form convenient for rendering with clojupyter. In this case, we want the TeX material wrapped with dollar signs.

Render expression in a form convenient for rendering with clojupyter.
In this case, we want the TeX material wrapped with dollar signs.
sourceraw docstring

time-independent-canonical?clj

(time-independent-canonical? C)

p.326

p.326
sourceraw docstring

transposecljmultimethod

generic transpose

generic transpose
sourceraw docstring

upclj

(up & xs)

Construct an up (contravariant) tuple from the arguments.

Construct an up (contravariant) tuple from the arguments.
sourceraw docstring

up?clj

(up? s)

True if s in an up structure.

True if s in an up structure.
sourceraw docstring

using-coordinatescljmacro

(using-coordinates coordinate-prototype coordinate-system & body)

Example: (using-coordinates (up x y) R2-rect body...)

Note: this is just a macro wrapping let-coordinates, the use of which is preferred.

Example:
  (using-coordinates (up x y) R2-rect
    body...)

Note: this is just a macro wrapping let-coordinates, the use of which is
preferred.
sourceraw docstring

vector->downclj

(vector->down v)

Form a down-tuple from a vector.

Form a down-tuple from a vector.
sourceraw docstring

vector->upclj

(vector->up v)

Form an up-tuple from a vector.

Form an up-tuple from a vector.
sourceraw docstring

vector-basis->dualclj

(vector-basis->dual vector-basis coordinate-system)
source

vector-field->componentsclj

(vector-field->components vf coordinate-system)
source

vector-field->vector-field-over-mapclj

(vector-field->vector-field-over-map mu:N->M)

FDG p.72

FDG p.72
sourceraw docstring

velocityclj

(velocity local)

See coordinate: this returns the velocity element of a local tuple (by convention, the 2nd element).

See coordinate: this returns the velocity element of a local
tuple (by convention, the 2nd element).
sourceraw docstring

velocity-tupleclj

source

wedgeclj

(wedge & fs)
source

with-literal-functionscljmacro

(with-literal-functions & args)
source

zero?clj

source

Γclj

source

clj

(∂ & selectors)

Partial differentiation of a function at the (zero-based) slot index provided.

Partial differentiation of a function at the (zero-based) slot index
provided.
sourceraw docstring

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

× close