Liking cljdoc? Tell your friends :D

sicmutils.calculus.derivative


canonicalize-differentialclj/s

(canonicalize-differential dx)
source

Dclj/s

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

derivativeclj/s

(derivative f)
source

Differentialcljs

source

differential-ofclj/s

(differential-of dx)

The differential of a quantity is, if we're a differential, the differential of the coefficient of the highest-order term part, or else the input itself.

The differential of a quantity is, if we're a differential, the differential
of the coefficient of the highest-order term part, or else the input itself.
sourceraw docstring

differential?clj/s

(differential? x)
source

dx*dyclj/s

(dx*dy dx dy)

Form the product of the differentials dx and dy.

Form the product of the differentials dx and dy.
sourceraw docstring

dx+dyclj/s

(dx+dy dx dy)

Adds two objects differentially. (One of the objects might not be differential; in which case we lift it into a trivial differential before the addition.)

Adds two objects differentially. (One of the objects might not be
differential; in which case we lift it into a trivial differential
before the addition.)
sourceraw docstring

make-differentialclj/s

(make-differential tags->coefs)

The input here is a mapping (loosely defined) between sets of differential tags and coefficients. The mapping can be an actual map, or just a sequence of pairs. The differential tag sets are sequences of integer tags, which should be sorted.

The input here is a mapping (loosely defined) between sets of
differential tags and coefficients. The mapping can be an actual
map, or just a sequence of pairs. The differential tag sets are
sequences of integer tags, which should be sorted.
sourceraw docstring

max-order-tagclj/s

(max-order-tag ds)

From each of the differentials in the sequence ds, find the highest order term; then return the greatest tag found in any of these terms; i.e., the highest-numbered tag of the highest-order term.

From each of the differentials in the sequence ds, find the highest
order term; then return the greatest tag found in any of these
terms; i.e., the highest-numbered tag of the highest-order term.
sourceraw docstring

partialclj/s

(partial & 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

taylor-seriesclj/s

(taylor-series f x dx)

Returns a Series of the coefficients of the taylor series of the function f evaluated at x, with incremental quantity dx.

NOTE: The (constantly dx) term is what allows this to work with arbitrary structures of x and dx. Without this wrapper, ((g/* dx D) f) with dx == (up 'dx 'dy) would expand to this:

(fn [x] (* (s/up ('dx x) ('dy x)) ((D f) x)))

constantly delays the interpretation of dx one step:

(fn [x] (* (s/up 'dx 'dy) ((D f) x)))

Returns a `Series` of the coefficients of the taylor series of the function `f`
evaluated at `x`, with incremental quantity `dx`.

NOTE: The `(constantly dx)` term is what allows this to work with arbitrary
structures of `x` and `dx`. Without this wrapper, `((g/* dx D) f)` with `dx`
== `(up 'dx 'dy)` would expand to this:

`(fn [x] (* (s/up ('dx x) ('dy x))
            ((D f) x)))`

`constantly` delays the interpretation of `dx` one step:

`(fn [x] (* (s/up 'dx 'dy)
            ((D f) x)))`
sourceraw docstring

with-and-without-tagclj/s

(with-and-without-tag tag dx)

Split the differential into the parts with and without tag and return the pair

Split the differential into the parts with and without tag and return the pair
sourceraw docstring

with-tagclj/s

(with-tag tag dx)

The differential containing only those terms with the given tag

The differential containing only those terms with the given tag
sourceraw docstring

without-tagclj/s

(without-tag tag dx)

The differential containing only those terms without the given tag

The differential containing only those terms without the given tag
sourceraw docstring

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

× close