28 Jan
2021
28 Jan
'21
5:44 a.m.
Hello. Another point I note: https://github.com/boostorg/math/blob/develop/include/boost/math/tools/toms7... ``` else if(c <= a + fabs(a) * tol) { c = a + fabs(a) * tol; } else if(c >= b - fabs(b) * tol) { c = b - fabs(b) * tol; } ``` If the intent is that a + fabs(a) * tol and b - fabs(b) * tol are the values closest to a and b allowable for c, shouldn't the tests above them test only for < and > and not <= and >=? I mean if the variable is already equal to the allowed value, then why compute the value again and assign it to the variable?