Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 65550 invoked from network); 22 Dec 2005 22:14:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Dec 2005 22:14:31 -0000 Received: (qmail 69333 invoked by uid 500); 22 Dec 2005 22:14:29 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 68784 invoked by uid 500); 22 Dec 2005 22:14:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 68773 invoked by uid 500); 22 Dec 2005 22:14:27 -0000 Received: (qmail 68770 invoked by uid 99); 22 Dec 2005 22:14:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2005 14:14:27 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Dec 2005 14:14:26 -0800 Received: (qmail 65407 invoked by uid 65534); 22 Dec 2005 22:14:06 -0000 Message-ID: <20051222221406.65406.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r358646 - in /jakarta/commons/proper/math/trunk/xdocs/userguide: complex.xml linear.xml Date: Thu, 22 Dec 2005 22:14:05 -0000 To: commons-cvs@jakarta.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: psteitz Date: Thu Dec 22 14:14:02 2005 New Revision: 358646 URL: http://svn.apache.org/viewcvs?rev=358646&view=rev Log: Merged userguide updates from MATH_1_1 release branch. Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/complex.xml jakarta/commons/proper/math/trunk/xdocs/userguide/linear.xml Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/complex.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/xdocs/userguide/complex.xml?rev=358646&r1=358645&r2=358646&view=diff ============================================================================== --- jakarta/commons/proper/math/trunk/xdocs/userguide/complex.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/userguide/complex.xml Thu Dec 22 14:14:02 2005 @@ -1,7 +1,7 @@ - The Commons Math User Guide - Statistics + The Commons Math User Guide - Complex Numbers
@@ -37,6 +37,18 @@ org.apache.commons.math.complex.Complex provides a complex number type that forms the basis for the complex functionality found in commons-math. +

+

+ Complex functions and arithmetic operations are implemented in + commons-math by applying standard computational formulas and + following the rules for java.lang.Double arithmetic in + handling infinite and NaN values. No attempt is made + to comply with ANSII/IEC C99x Annex G or any other standard for + Complex arithmetic. See the class and method javadocs for the + + Complex and + + ComplexUtils classes for details on computing formulas.

To create a complex number, simply call the constructor passing in two @@ -45,9 +57,14 @@ Complex c = new Complex(1.0, 3.0); // 1 + 3i

- The Complex class provides many unary and binary + Complex numbers may also be created from polar representations + using the polar2Complex method in + ComplexUtils. +

+

+ The Complex class provides basic unary and binary complex number operations. These operations provide the means to add, - subtract, multiple and, divide complex numbers along with other + subtract, multiply and divide complex numbers along with other complex number functions similar to the real number functions found in java.math.BigDecimal: Complex lhs = new Complex(1.0, 3.0); @@ -62,7 +79,7 @@

- org.apache.commons.math.complex.ComplexMath provides + org.apache.commons.math.complex.ComplexUtils provides implementations of serveral transcendental functions involving complex number arguments. These operations provide the means to compute the log, sine, tangent and, other complex values similar to the real Modified: jakarta/commons/proper/math/trunk/xdocs/userguide/linear.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/xdocs/userguide/linear.xml?rev=358646&r1=358645&r2=358646&view=diff ============================================================================== --- jakarta/commons/proper/math/trunk/xdocs/userguide/linear.xml (original) +++ jakarta/commons/proper/math/trunk/xdocs/userguide/linear.xml Thu Dec 22 14:14:02 2005 @@ -56,9 +56,10 @@ // One more with three rows, two columns double[][] matrixData2 = { {1d,2d}, {2d,5d}, {1d, 7d}}; -RealMatrix n = new RealMatrixImpl(matrixData2); +RealMatrix n = new RealMatixImpl(matrixData2); -// Note: The constructor copies the input double[][] array. +// Note: constructor makes a +// Fresh copy of the input double[][] array // Now multiply m by n RealMatrix p = m.multiply(n); --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org