/** * Finds the root of a function using Chandrupatla's hybrid bisection / inverse-quadratic- * interpolation method (T. R. Chandrupatla, Advances in Engineering Software 28.3, 1997). * * @method chandrupatla * @memberof ran.algorithms * @param {Function} f Function to find root for. Must accept a single variable. * @param {number} a0 Lower boundary of the bracket. * @param {number} b0 Upper boundary of the bracket. * @return {number} The root location. Best approximation after MAX_ITER iterations if convergence * is not reached. * @throws {Error} If f(a0) and f(b0) have the same sign (bracket does not contain a root). * @private */ export default function (f: Function, a0: number, b0: number): number;