minimaxEval {minimaxApprox} | R Documentation |
The function evaluates the rational or polynomial approximation at x.
minimaxEval(x, mmA)
x |
a numeric vector |
mmA |
a |
This is a convenience function to evaluate the approximation at supplied
x
.
A vector of the same length as x
containing the approximation values.
Avraham Adler Avraham.Adler@gmail.com
x <- seq(0.1, 0.4, 0.025)
mmA <- minimaxApprox(exp, 0, 0.5, 5L)
exp(x)
minimaxEval(x, mmA)
exp(x) - minimaxEval(x, mmA)
all(exp(x) - minimaxEval(x, mmA) <= mmA$EE)