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

"RegulaFalsiSolver" failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None

    Description

      The following unit test:

      @Test
      public void testBug() {
          final UnivariateRealFunction f = new UnivariateRealFunction() {
                  @Override
                  public double value(double x) {
                      return Math.exp(x) - Math.pow(Math.PI, 3.0);
                  }
              };
      
          UnivariateRealSolver solver = new RegulaFalsiSolver();
          double root = solver.solve(100, f, 1, 10);
      }
      

      fails with

      illegal state: maximal count (100) exceeded: evaluations
      

      Using "PegasusSolver", the answer is found after 17 evaluations.

      Attachments

        1. ticket631.patch
          7 kB
          Dennis Hendriks

        Issue Links

          Activity

            People

              Unassigned Unassigned
              erans Gilles Sadowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: