Evaluates the difference between the function and the minimax approximation at x.
minimaxErr(x, mmA)
Arguments
x: a numeric vector
mmA: a "minimaxApprox" return object
Details
This is a convenience function to evaluate the approximation error at x. It will use the same polynomial basis as was used in the approximation; see minimaxApprox for more details.
Returns
A vector of the same length as x containing the approximation error values.