mirror of
https://github.com/boostorg/math.git
synced 2026-01-27 19:12:08 +00:00
"naive" method is prone to generating a point at the endpoint if the endpoint is large, subtract scaled complement from the endpoint instead. Open questions: 1) Can this still fail if the endpoint is a very large value? For example if we have endpoints of [+large, +larger] where the difference between them is small? 2) Do we still need the asserts, or should they be replaced by some other check? 3) If the endpoints are replaced by some other check we could either massage the position to be one representable value below the endpoint, or else simply return 0. The former risks evaluating at the same point over and over as we go down levels, the latter would seem to be incorrect for functions which do not go to zero at the endpoint.