Vocabulary

math.derivatives.syntax

Word description

Defines the derivative of a word by setting its derivative word property. Reads a word followed by n quotations, giving the n partial derivatives of the word with respect to each of its arguments successively. Each quotation should take n + 1 inputs, where the first input is an increment and the last n inputs are the point at which to evaluate the derivative. The derivative should be a linear function of the increment, and should have the same number of outputs as the original word.

Examples

See also

define-dual, dual-op

Definition

math.derivatives.syntax

Word description

Defines the derivative of a word by setting its derivative word property. Reads a word followed by n quotations, giving the n partial derivatives of the word with respect to each of its arguments successively. Each quotation should take n + 1 inputs, where the first input is an increment and the last n inputs are the point at which to evaluate the derivative. The derivative should be a linear function of the increment, and should have the same number of outputs as the original word.

Examples

USING: math math.functions math.derivatives.syntax ;
DERIVATIVE: sin [ cos * ]
DERIVATIVE: * [ nip * ] [ drop * ]

See also

define-dual, dual-op

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)