| Logic {dual} | R Documentation |
Logic Operators for Comparing Dual Numbers
Description
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").
Usage
## 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
Arguments
e1 |
dual object or numeric value. |
e2 |
dual object or numeric value. |
Value
The correspondent boolean/logical value of the comparison between
e1 and e2 is returned.
Examples
x <- dual(1.5, 1:0)
y <- dual(2.6, 0:1)
x == y
x != y
x > y
x >= y
x < y
x <= y
[Package dual version 0.0.5 Index]