Opened 10 years ago

Closed 10 years ago

#8116 closed Bugs (fixed)

quadratic_interpolate does not work when bracket starts at zero

Reported by: murphy@… 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.

Change History (1)

comment:1 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

(In [83283]) Fixes #8116.

Note: See TracTickets for help on using tickets.