Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 50288 invoked from network); 8 Nov 2010 11:48:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 11:48:35 -0000 Received: (qmail 34828 invoked by uid 500); 8 Nov 2010 11:49:06 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 34250 invoked by uid 500); 8 Nov 2010 11:49:03 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 34242 invoked by uid 99); 8 Nov 2010 11:49:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 11:49:02 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.206.126.239] (HELO smtp.nordnet.fr) (194.206.126.239) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 11:48:53 +0000 Received: from lehrin (126.209.20.81.dynamic.adsl.abo.nordnet.fr [81.20.209.126]) by smtp.nordnet.fr (Postfix) with ESMTP id 7E47F34B0A for ; Mon, 8 Nov 2010 12:48:31 +0100 (CET) Received: by lehrin (Postfix, from userid 5001) id D58E2406C; Mon, 8 Nov 2010 12:48:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lehrin.spaceroots.local X-Spam-Level: Received: from lehrin.spaceroots.local (lehrin.spaceroots.local [127.0.0.1]) by lehrin (Postfix) with ESMTP id C9CAA405F for ; Mon, 8 Nov 2010 12:48:28 +0100 (CET) Message-ID: <4CD7E38C.6060203@free.fr> Date: Mon, 08 Nov 2010 12:48:28 +0100 From: Luc Maisonobe User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: dev@commons.apache.org Subject: Re: svn commit: r1032424 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math: analysis/UnivariateRealFunction.java util/MathUtils.java References: <20101107234942.6302223889EA@eris.apache.org> In-Reply-To: <20101107234942.6302223889EA@eris.apache.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,FREEMAIL_FROM autolearn=unavailable version=3.3.1 Le 08/11/2010 00:49, erans@apache.org a écrit : > Author: erans > Date: Sun Nov 7 23:49:42 2010 > New Revision: 1032424 > > URL: http://svn.apache.org/viewvc?rev=1032424&view=rev > Log: > MATH-195 > Added requested Javadoc comment. > Removed unused import. Fine. Thanks Gilles. Luc > > Modified: > commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/UnivariateRealFunction.java > commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java > > Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/UnivariateRealFunction.java > URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/UnivariateRealFunction.java?rev=1032424&r1=1032423&r2=1032424&view=diff > ============================================================================== > --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/UnivariateRealFunction.java (original) > +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/UnivariateRealFunction.java Sun Nov 7 23:49:42 2010 > @@ -27,6 +27,22 @@ public interface UnivariateRealFunction > * > * @param x Point at which the function value should be computed. > * @return the value. > + * @throws IllegalArgumentException when the activated method itself can > + * ascertain that preconditions specified in the API expressed at the > + * level of the activated method have been violated. In the vast > + * majority of cases where Commons-Math throws IllegalArgumentException, > + * it is the result of argument checking of actual parameters immediately > + * passed to a method. > + * @throws org.apache.commons.math.exception.FunctionEvaluationException > + * when the method that may encounter errors during evaluation. > + * This should be thrown only in circumstances where, at the level of the > + * activated function, IllegalArgumentException is not appropriate and it > + * should indicate that while formal preconditions of the method have not > + * been violated, an irrecoverable error has occurred evaluating a > + * function at some (usually lower) level of the call stack. > + * Convergence failures, runtime exceptions (even IllegalArgumentException) > + * in user code or lower level methods can cause (and should be wrapped in) > + * a FunctionEvaluationException. > */ > double value(double x); > } > > Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java > URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java?rev=1032424&r1=1032423&r2=1032424&view=diff > ============================================================================== > --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java (original) > +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Sun Nov 7 23:49:42 2010 > @@ -23,7 +23,6 @@ import java.util.Arrays; > import java.util.List; > import java.util.ArrayList; > import java.util.Comparator; > -import java.util.Map; > import java.util.Collections; > > import org.apache.commons.math.MathRuntimeException; > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org