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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: