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

BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double initial) throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • None
    • None
    • None
    • Windows XP Profesional
      java version "1.6.0_20"
      Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
      Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

    Description

      Method

      BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double initial)

      invokes

      BisectionSolver.solve(double min, double max)

      which throws NullPointerException, as member variable

      UnivariateRealSolverImpl.f

      is null.

      Instead the method:

      BisectionSolver.solve(final UnivariateRealFunction f, double min, double max)

      should be called.

      Steps to reproduce:

      invoke:

      new BisectionSolver().solve(someUnivariateFunctionImpl, 0.0, 1.0, 0.5);

      NullPointerException will be thrown.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sasunpundev@abv.bg Sasun Pundev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: