Evaluate a forward or inverse (monotonic) polynomial function.
inv_poly(x, coefs, lb = -1000, ub = 1000)fw_poly(y, coefs)
Scalar polynomial function input.
Vector of coefficients that define a monotonic polynomial, see details.
Lower bound of the search interval.
Upper bound of the search interval.
Scalar polynomial function output.
$$x = t_0 + t_1y + t_2y^2 + ...$$ Then, for coefs = \((t_0, t_1, t_2, ...)^\prime\), this function finds the corresponding \(y\) value (inv_poly) or \(x\) value (fw_poly).