powered by
The function almost.zero tests if values of the numeric vector x are equal to zero up to a tolerance.
almost.zero
x
almost.zero(x, tolerance = sqrt(.Machine$double.eps))
numeric. The vector of numeric values at stake.
numeric. Differences smaller than tolerance are considered as equal. The default value is close to 1.5e-8.
1.5e-8
A logical vector of the same length as x.
all.equal.
all.equal
# NOT RUN { almost.zero(c(0, 10^(-7), 10^(-8))) # }
Run the code above in your browser using DataLab