| dual-maxmin | R Documentation |
Compares on value and propagates the derivative of the selected branch.
## S4 method for signature 'dualr'
max(x, ..., na.rm = FALSE)
## S4 method for signature 'dualr'
min(x, ..., na.rm = FALSE)
x |
A dual number. |
... |
Additional dual or numeric values. |
na.rm |
Ignored. |
A dual representing the max or min.
x <- dual_variable(3)
y <- dual_variable(5)
value(max(x, y))
value(min(x, y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.