Logic | R Documentation |
These functions provide the operators for logical comparisons between dual numbers. These operators are designed to test equality and inequalities (such as "not equal", "greater", "less", "greater or equal", "less or equal").
## 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
## 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 boolean/logical value of the comparison between
e1
and e2
is returned.
x <- dual(1.5, 1:0)
y <- dual(2.6, 0:1)
x == y
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.