| dual-summary | R Documentation |
Implements sum, prod, min, max, range,
any, and all for dual numbers. Derivatives are propagated
correctly through sum (additive) and prod (multiplicative).
## S4 method for signature 'dualr'
Summary(x, ..., na.rm = FALSE)
x |
A dual number. |
... |
Additional dual or numeric values. |
na.rm |
Logical; ignored (present for generic compatibility). |
A dual for sum/prod/min/max; a dual_vector for range;
logical for any/all.
x <- dual_variable(2)
y <- dual_variable(5)
value(sum(x, y))
value(prod(x, y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.