commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mick (JIRA)" <>
Subject [jira] Created: (MATH-204) BrentSolver throws IllegalArgumentException
Date Tue, 06 May 2008 20:34:57 GMT
BrentSolver throws IllegalArgumentException 

                 Key: MATH-204
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 1.2
         Environment: Win XP
            Reporter: Mick
            Priority: Minor

I am getting this exception:

java.lang.IllegalArgumentException: Function values at endpoints do not have different signs.
 Endpoints: [-100000.0,1.7976931348623157E308]  Values: [0.0,-101945.04630982173]
at org.apache.commons.math.analysis.BrentSolver.solve(
at org.apache.commons.math.analysis.BrentSolver.solve(

The exception should not be thrown with values  [0.0,-101945.04630982173] because 0.0 is positive.
According to Brent Worden, the algorithm should stop and return 0 as the root instead of throwing
an exception.

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

View raw message