abs.ff_vector: Math for ff vectors
Description
These mathematical functions implement ff_vector
specific math and handle the following functions from the
Math family:
{"abs",
"sign", "sqrt", "ceiling", "floor", "trunc", "log",
"log10", "log2", "log1p", "acos", "acosh", "asin",
"asinh", "atan", "atanh", "exp", "expm1", "cos", "cosh",
"sin", "sinh", "tan", "tanh", "gamma", "lgamma",
"digamma", "trigamma"
} - Math2:
{"round",
"signif"
}Usage
## S3 method for class 'ff_vector':
abs(x)
## S3 method for class 'ff_vector':
sign(x)
## S3 method for class 'ff_vector':
sqrt(x)
## S3 method for class 'ff_vector':
ceiling(x)
## S3 method for class 'ff_vector':
floor(x)
## S3 method for class 'ff_vector':
trunc(x, ...)
## S3 method for class 'ff_vector':
log10(x)
## S3 method for class 'ff_vector':
log2(x)
## S3 method for class 'ff_vector':
log1p(x)
## S3 method for class 'ff_vector':
acos(x)
## S3 method for class 'ff_vector':
acosh(x)
## S3 method for class 'ff_vector':
asin(x)
## S3 method for class 'ff_vector':
asinh(x)
## S3 method for class 'ff_vector':
atan(x)
## S3 method for class 'ff_vector':
atanh(x)
## S3 method for class 'ff_vector':
exp(x)
## S3 method for class 'ff_vector':
expm1(x)
## S3 method for class 'ff_vector':
cos(x)
## S3 method for class 'ff_vector':
cosh(x)
## S3 method for class 'ff_vector':
sin(x)
## S3 method for class 'ff_vector':
sinh(x)
## S3 method for class 'ff_vector':
tan(x)
## S3 method for class 'ff_vector':
tanh(x)
## S3 method for class 'ff_vector':
gamma(x)
## S3 method for class 'ff_vector':
lgamma(x)
## S3 method for class 'ff_vector':
digamma(x)
## S3 method for class 'ff_vector':
trigamma(x)
## S3 method for class 'ff_vector':
log(x, base)
## S3 method for class 'ff_vector':
round(x, digits)
## S3 method for class 'ff_vector':
signif(x, digits)
Arguments
digits
digits for round
and signif
...
for trunc
, currently not used
Value
- an
ff_vector
. For the definition of the operators
see the base package of R.