| deriv_n | R Documentation |
After evaluating a function on a dual created by
dual_variable_n, use deriv_n to extract any
derivative from 0 (the function value) up to the seeded order.
deriv_n(d, k)
d |
A (possibly nested) dual number, or a numeric. |
k |
A non-negative integer: 0 for the function value, 1 for the first derivative, etc. |
A numeric value.
x <- dual_variable_n(1, order = 3)
r <- exp(x)
deriv_n(r, 0)
deriv_n(r, 1)
deriv_n(r, 2)
deriv_n(r, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.