@[TOC](JavaScript:实现在指定区间 [a, b] 中找到函数的实根,其中 f(a)*f(b) < 0算法)
/**
*
* @file
* @brief Find real roots of a function in a specified interval [a, b], where f(a)*f(b) < 0
*
* @details Given a function f(x) and an interval [a, b], where f(a) * f(b) < 0, find an approximation of the root
* by calculating the middle m = (a + b) / 2, checking f(m) * f(a) and f(m) * f(b) and then by choosing the
* negative product that means Bolzano's theorem is applied,, define the new interval with these points. Repeat until
* we get the precision we want [Wikipedia]
*
*
*/
const findRoot