Arithmetic | R Documentation |
These unary and binary operators perform arithmetic on dual objects.
## S4 method for signature 'dual,missing'
e1 + e2
## S4 method for signature 'dual,numeric'
e1 + e2
## S4 method for signature 'numeric,dual'
e1 + e2
## S4 method for signature 'dual,dual'
e1 + e2
## S4 method for signature 'dual,missing'
e1 - e2
## S4 method for signature 'dual,numeric'
e1 - e2
## S4 method for signature 'numeric,dual'
e1 - e2
## S4 method for signature 'dual,dual'
e1 - e2
## S4 method for signature 'dual,numeric'
e1 * e2
## S4 method for signature 'numeric,dual'
e1 * e2
## S4 method for signature 'dual,dual'
e1 * e2
## S4 method for signature 'dual,numeric'
e1 / e2
## S4 method for signature 'numeric,dual'
e1 / e2
## S4 method for signature 'dual,dual'
e1 / e2
## S4 method for signature 'dual,numeric'
e1 ^ e2
## S4 method for signature 'numeric,dual'
e1 ^ e2
## S4 method for signature 'dual,dual'
e1 ^ e2
e1 |
dual object or numeric value. |
e2 |
dual object or numeric value. |
The correspondent values of the arithmetic operation on e1
and e2
is returned.
x <- dual(1.5, 1:0)
y <- dual(2.6, 0:1)
+x
-x
x - y
x * y
x / y
x ^ y
x + y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.