Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 92533 invoked from network); 6 May 2008 20:35:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 May 2008 20:35:19 -0000 Received: (qmail 19923 invoked by uid 500); 6 May 2008 20:35:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 19841 invoked by uid 500); 6 May 2008 20:35:19 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 19830 invoked by uid 99); 6 May 2008 20:35:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 13:35:19 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 20:34:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 42AD1234C106 for ; Tue, 6 May 2008 13:34:57 -0700 (PDT) Message-ID: <712585362.1210106097271.JavaMail.jira@brutus> Date: Tue, 6 May 2008 13:34:57 -0700 (PDT) From: "Mick (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (MATH-204) BrentSolver throws IllegalArgumentException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org BrentSolver throws IllegalArgumentException -------------------------------------------- Key: MATH-204 URL: https://issues.apache.org/jira/browse/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(BrentSolver.java:99) at org.apache.commons.math.analysis.BrentSolver.solve(BrentSolver.java:62) 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.