| dual_variable_n | R Documentation |
Recursively nests dual numbers to enable exact computation of
derivatives up to order n. The variable is seeded so that
after evaluating a function f, the k-th derivative can be
extracted with deriv_n(result, k).
dual_variable_n(x, order)
x |
A numeric value at which to differentiate. |
order |
A positive integer specifying the derivative order. |
A (possibly nested) dual number.
x <- dual_variable_n(2, order = 3)
r <- x^4
deriv_n(r, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.