A root of a function of one variable in an interval, by Brent's zeroin. Equivalent to R's uniroot().
uniroot()
uniroot((x) => x * x - 2, 0, 2, { tol: 1e-12 }).root; // 1.4142135623731364 Copy
uniroot((x) => x * x - 2, 0, 2, { tol: 1e-12 }).root; // 1.4142135623731364
A root of a function of one variable in an interval, by Brent's zeroin. Equivalent to R's
uniroot().