/** * Finds the root of a function using [Newton's method]{@link https://en.wikipedia.org/wiki/Newton's_method}. * This is a direct implementation of the method but still useful for some simple cases. * * @method newton * @memberof ran.algorithms * @param {Function} f Function to find root for. Must accept a single variable. * @param {Function} df First derivative of the function. Must accept a single variable. * @param {number} x0 Starting point of the optimization. * @return {number} The root of the specified function. * @private */ export default function (f: Function, df: Function, x0: number): number;