Arith {frab} | R Documentation |
Arithmetic methods for class "frab"
Description
The frab
class provides basic arithmetic methods for frab
objects. Low-level helper functions c_frab_eq()
amd
c_frab_pmax()
are documented here for consistency; but
technically c_frab_eq()
is a Comparison operator, and
c_frab_pmax()
is an “Extremes” function. They are
documented at Compare.Rd
and pmax.Rd
respectively.
Usage
frab_negative(x)
frab_reciprocal(x)
frab_plus_frab(F1,F2)
frab_multiply_numeric(e1,e2)
frab_power_numeric(e1,e2)
numeric_power_frab(e1,e2)
frab_unary(e1,e2)
frab_arith_frab(e1,e2)
frab_plus_numeric(e1,e2)
frab_arith_numeric(e1,e2)
numeric_arith_frab(e1,e2)
Arguments
e1 , e2 , x , F1 , F2 |
Objects of class |
Value
Return frab
objects
Methods
- Arith
signature(e1="frab" , e2="missing")
: blah blah blah- Arith
signature(e1="frab" , e2="frab" )
: ...- Arith
signature(e1="frab" , e2="numeric")
: ...- Arith
signature(e1="numeric", e2="frab" )
: ...- Arith
signature(e1="ANY" , e2="frab" )
: ...- Arith
signature(e1="frab" , e2="ANY" )
: ...
Author(s)
Robin K. S. Hankin
See Also
Examples
(x <- frab(c(a=1,b=2,c=3)))
(y <- frab(c(b=-2,d=8,x=1,y=7)))
(z <- frab(c(c=2,x=5,b=1,a=6)))
x+y
x+y+z
x*y
[Package frab version 0.0-3 Index]