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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: