Opened 10 years ago
Closed 10 years ago
#8116 closed Bugs (fixed)
quadratic_interpolate does not work when bracket starts at zero
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | math | 
| Version: | Boost 1.52.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
On line 200 of boost/math/tools/toms748_solve.hpp, the code should be checking whether the coefficient 'A' of the quadratic polynomial is zero before giving up and calling secant_interpolate, not the variable 'a', which is the lower bound of the bracket.
  Note:
 See   TracTickets
 for help on using tickets.
    

(In [83283]) Fixes #8116.