4142 Commits

Author SHA1 Message Date
Gilles Sadowski
bd59fee7a6 Code comment.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374187 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 09:50:54 +00:00
Luc Maisonobe
64a7948cee Added log10 to DerivativeStructure and DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374162 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 07:15:28 +00:00
Luc Maisonobe
d48f623281 Changed parameters name for consistency with getters and DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374161 13f79535-47bb-0310-9956-ffa450edef68
2012-08-17 07:15:05 +00:00
Gilles Sadowski
acaf4d9caa Change suggested by "FindBugs".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374071 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:35:14 +00:00
Gilles Sadowski
02123844e8 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374065 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:22:09 +00:00
Gilles Sadowski
b1741d1b46 Precondition check.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374054 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 21:00:39 +00:00
Gilles Sadowski
7994d3ee9d MATH-844
Generate an exception when the parameter guessing procedure cannot perform
correctly (in rare ill-conditioned cases).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374046 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:43:59 +00:00
Thomas Neidhart
91d24dcb6f Disabled random data tests for eigen decomposition, improved checkUnsymmetricMatrix helper.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374031 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 20:14:15 +00:00
Luc Maisonobe
f06fe1c098 Added toDegrees and toRadians to DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373782 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:08:17 +00:00
Luc Maisonobe
d26fd0236a Added signum to DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373781 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:59 +00:00
Luc Maisonobe
7b090c5eec Added rint and round to DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373780 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:42 +00:00
Luc Maisonobe
486224fd36 Added getExponent, scalb and hypot to DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373779 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:26 +00:00
Luc Maisonobe
4c56e61497 Added expm1 and log1p to DSCompiler and DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373778 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:07:08 +00:00
Luc Maisonobe
68c813c945 Added copySign to DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373777 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:50 +00:00
Luc Maisonobe
70ea046932 Added ceil and floor to DerivativeStructure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373776 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:33 +00:00
Luc Maisonobe
09b90da825 Added abs to DerivativeStructure.
We handle +0.0/-0.0 correctly, i.e. we flip derivatives sign when value
is negative zero.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373775 13f79535-47bb-0310-9956-ffa450edef68
2012-08-16 10:06:16 +00:00
Thomas Neidhart
4e72620a37 Fix RealMatrixFormatTests to always use a fixed locale instead of the default one.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373554 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 18:30:18 +00:00
Thomas Neidhart
c90de5a469 Use fixed locale for matrix formatter to prevent decimal point problems.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373551 13f79535-47bb-0310-9956-ffa450edef68
2012-08-15 18:24:25 +00:00
Gilles Sadowski
9b5b8d7d45 Fixed FindBugs warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373134 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 22:02:06 +00:00
Thomas Neidhart
16a5a02a84 Javadoc fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373026 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 18:50:53 +00:00
Luc Maisonobe
ff43dac3d2 Added hyperbolic trigonometric functions and inverses to DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372902 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 14:25:50 +00:00
Luc Maisonobe
6f859c5f5b Simplified tangent higher derivatives computation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372812 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 09:45:36 +00:00
Gilles Sadowski
30866a4cd3 MATH-815
Unit test update (patch provided by Jared Becksfort).


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372556 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 19:14:00 +00:00
Luc Maisonobe
b6d4068162 Added Taylor expansion for DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372432 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 14:14:17 +00:00
Luc Maisonobe
07aa93aae7 Added support for atan2 in DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372414 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 13:06:26 +00:00
Gilles Sadowski
1ec0b8d527 Fixed CheckStyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372208 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 22:55:34 +00:00
Gilles Sadowski
0f9adb1875 Code cleanup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1372199 13f79535-47bb-0310-9956-ffa450edef68
2012-08-12 21:22:58 +00:00
Luc Maisonobe
33877ac5ed Added support for x^y in DerivativeStructure and DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371808 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 18:58:58 +00:00
Luc Maisonobe
d05fac054e Completed support fo asin, acos and atan in DSCompiler.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371805 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 18:33:06 +00:00
Luc Maisonobe
b46cdf1bd6 Added forgotten notification of recent changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371683 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:19:48 +00:00
Luc Maisonobe
be1632f3e3 New test for sin and cos derivatives.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371681 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:18:12 +00:00
Luc Maisonobe
add45005fc Added Stirling numbers of the second kind in ArithmeticUtils.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371680 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 12:15:23 +00:00
Luc Maisonobe
f2fe724505 Forward the underlying error message when an exception is triggered.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371671 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 11:59:20 +00:00
Luc Maisonobe
746c998e1a Fixed accuracy issues in FastMath.pow(double, int).
The fixed version is slightly slower, but still much faster than
FastMath.pow(double, double). Some random testing showed that the
accuracy is now always better than 0.5ulp, even for large exponent.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371670 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 11:54:46 +00:00
Gilles Sadowski
f465d0aa69 Code and javadoc cleanup.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371264 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 15:55:18 +00:00
Gilles Sadowski
dbe216ce60 Unit test for "FastMath.pow(double,int)".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371170 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:40:01 +00:00
Luc Maisonobe
0ee65b7169 added a function to raise a double to an int power
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371082 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 08:07:25 +00:00
Luc Maisonobe
6e85e1c837 partially reverted commit 1370951 as it trashed earlier correction in FastMath
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371073 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 07:54:06 +00:00
Gilles Sadowski
f040e261bf MATH-815
Code update. Unit test.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370984 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 21:52:22 +00:00
Luc Maisonobe
87b597c622 Added a new package dealing with differentials.
The package is intended to deals with one or more free parameters and
derivation order 1 or higher.

The core elements are based on Dan Kalman paper "Recursive Multivariate
Automatic Differentiation", Mathematics Magazine, vol. 75, no. 3, June
2002. For efficiency, the recursive structure is compiled as simple
loops once for each pair (number of free parameters, derivation order).

This is work in progress, there are still some features missing even in
the most basic blocks (typically the asin, acos, atan, atant2 and taylor
methods in DSCompiler). There are also still no high level
differentiator implementation.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370951 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 20:33:43 +00:00
Gilles Sadowski
13f4032d6c MATH-815
Initial commit. Units test are yet to be added. This version also
contains a bug. Code contributed by Jared Becksfort, included with
modifications. [Cf. comments on JIRA.]


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370782 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 14:18:16 +00:00
Gilles Sadowski
5827a6faad MATH-843
Corrected documentation for "Precision.EPSILON".


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370547 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 21:38:58 +00:00
Sebastian Bazley
5add6876dc MIssing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370228 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:49:31 +00:00
Sebastian Bazley
12983d5e04 MIssing @Override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370227 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:48:25 +00:00
Sebastian Bazley
404b6196a5 Javadoc fixes (not thrown)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370224 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:43:41 +00:00
Sebastian Bazley
8d97496f8d Raw types
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370220 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:42:33 +00:00
Sebastian Bazley
2e16492cbf Missing @Deprecated
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370219 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:40:56 +00:00
Sebastian Bazley
88c71ec9d7 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370217 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:39:29 +00:00
Sebastian Bazley
8fd9c6eee0 Missing @Deprecated
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370215 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:59 +00:00
Sebastian Bazley
e3ec8ebcf0 Javadoc syntax
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1370214 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 12:38:39 +00:00