/** * Computes the definite integral of f over [a, b] using the double-exponential * (tanh-sinh) transformation. Achieves machine-epsilon precision in ~7 levels * for smooth integrands and naturally handles endpoint singularities. * * @method tanhSinh * @memberof ran.algorithms * @param {Function} f Integrand. * @param {number} a Lower bound. * @param {number} b Upper bound. * @return {number} Approximate integral. * @private */ export default function (f: Function, a: number, b: number): number;