[ 
https://issues.apache.org/jira/browse/MATH-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837747#action_12837747
 ] 

Luc Maisonobe commented on MATH-343:
------------------------------------

You are right.
I have removed the unreachable code and committed it in the subversion 
repository
Thanks again

> Brent solver doesn't throw IllegalArgumentException when initial guess has 
> the wrong sign
> -----------------------------------------------------------------------------------------
>
>                 Key: MATH-343
>                 URL: https://issues.apache.org/jira/browse/MATH-343
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Volkan Aktas
>            Priority: Critical
>
> Javadoc for "public double solve(final UnivariateRealFunction f, final double 
> min, final double max, final double initial)" claims that "if the values of 
> the function at the three points have the same sign" an 
> IllegalArgumentException is thrown. This case isn't even checked.

-- 
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