Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-168

BrentSolver cannot identify brackets with small objective values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0
    • 1.1
    • rootfinder
    • None

    Description

      The BrentSolver detects a change in sign using:

      if (x * y < 0) {
      

      This does not work if the product is zero as is the case with sub-normal numbers. The sign of the zero can be compared using:

      if (Double.compare(x * y, 0.0) < 0) {
      

      This will detect -0.0 and allows the solver to search the bracket interval.

      Attachments

        Activity

          People

            aherbert Alex Herbert
            aherbert Alex Herbert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: