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

                 Key: MATH-369
                 URL: https://issues.apache.org/jira/browse/MATH-369
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 2.1
         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)
            Reporter: Sasun Pundev
            Priority: Minor


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.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to