Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-343

Brent solver doesn't throw IllegalArgumentException when initial guess has the wrong sign

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None
    • None

    Description

      Javadoc for "public double solve(final UnivariateRealFunction f, final double min, final double max, final double initial)" claims that "if the values of the function at the three points have the same sign" an IllegalArgumentException is thrown. This case isn't even checked.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aktasv Volkan Aktas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: