Sebastian Bazley
795e041074
Only check public methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061599 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 02:28:44 +00:00
Luc Maisonobe
5ac5c98b80
improved javadoc on infinite values for nextAfter
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061555 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 22:38:35 +00:00
Luc Maisonobe
9f30f38980
fixed behavior of nextAfter(double, double) for infinity,
...
added nextAfter(float, float) and nextUp(float)
JIRA: MATH-478
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061551 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 22:33:56 +00:00
Luc Maisonobe
fef497d841
limit visibility of event states list to AbstractIntegrator class only
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061527 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 21:31:54 +00:00
Luc Maisonobe
73a8e5d165
separate discrete event detection from adaptive step size handling in ODE solvers,
...
thus improving robustness, maintainability and speed
JIRA: MATH-484
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061508 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 20:57:11 +00:00
Luc Maisonobe
168139c161
added MathInternalError
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061498 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 20:32:54 +00:00
Sebastian Bazley
05d16ea5e0
Rearrange DOUBLE_SPECIAL_VALUES in decreasing absolute value to help catch first failure
...
Add MathUtils.EPSILON and SAFE_MIN as other likely break points
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061322 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 14:45:12 +00:00
Sebastian Bazley
a0c8e5c701
Javadoc clarification for signum
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1061096 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 01:28:59 +00:00
Sebastian Bazley
0a9d609f98
Update changes with recent fixes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060980 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 20:42:40 +00:00
Sebastian Bazley
c1d889840c
MATH-486 FastMath toRadian and toDegree don't handle large double numbers well
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060967 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 20:26:55 +00:00
Sebastian Bazley
0900d78b9a
Ensure correct sign when toRadians() returns zero
...
[Not needed for toDegrees() as the calculation does not underflow]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060959 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 20:12:38 +00:00
Sebastian Bazley
bd77d3cff2
MATH-483 FastMath does not handle all special cases correctly
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060936 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:49:10 +00:00
Sebastian Bazley
d6c0ad9a2c
MATH-478 FastMath is not an exact replacement for StrictMath
...
Add signum(float)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060918 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:26:45 +00:00
Sebastian Bazley
0089ff79b8
MATH-480 - Fix ulp(Infinity) to return Infinity rather than NaN
...
MATH-478 - Adds ulp(float)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060910 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:17:31 +00:00
Sebastian Bazley
a507a4eca6
MATH-479 FastMath.signum(-0.0) does not agree with Math.signum(-0.0)
...
(tests already added as part of math483)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060905 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:05:56 +00:00
Sebastian Bazley
3719af9ea2
MATH-483 Add FastMath special test case code
...
TODO - enable fail when bugs have been fixed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060903 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:05:38 +00:00
Gilles Sadowski
6ad3d5edf1
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060449 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 16:24:27 +00:00
Gilles Sadowski
24bd2a8ec1
Javadoc cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060430 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 16:02:30 +00:00
Sebastian Bazley
1148874baa
Tab and trailing space removal
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060125 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 23:02:05 +00:00
Sebastian Bazley
b11082e6d2
Clarify Javadoc link references
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060122 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 22:55:44 +00:00
Sebastian Bazley
21bb63b1de
Wrong issue number: MATH-491 should be MATH-471
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060081 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 20:30:04 +00:00
Sebastian Bazley
48f925acfe
MATH-471 MathUtils.equals(double, double) does not work properly for floats
...
- update changes file
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060079 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 20:24:56 +00:00
Sebastian Bazley
8c14d78cee
MATH-482 FastMath.max(50.0f, -50.0f) => -50.0f; should be +50.0f
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060062 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 19:58:00 +00:00
Sebastian Bazley
6d6649ef69
MATH-482 FastMath.max(50.0f, -50.0f) => -50.0f; should be +50.0f
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1060060 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 19:55:01 +00:00
Sebastian Bazley
30d4ad8606
Unused import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1059983 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 16:52:23 +00:00
Gilles Sadowski
d052e159a9
MATH-475
...
Updated the Javadoc to make clear that 2 adjacent floating point numbers
are considered equal whatever the allowed tolerance.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1059909 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 13:06:13 +00:00
Gilles Sadowski
5cd31fd1be
"Commons Math" instead of "Commons-Math"
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058644 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 16:12:50 +00:00
Gilles Sadowski
3a5a2a4da2
Update.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058602 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 15:13:38 +00:00
Sebastian Bazley
a4b1948b7c
MATH-471 MathUtils.equals(double, double) does not work properly for floats
...
- add equivalent (float, float) methods and basic tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058397 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 02:57:57 +00:00
Gilles Sadowski
0e1dc43ecd
MATH-470
...
"Un-deprecate" unit test.
Javadoc clean up.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058110 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 12:35:38 +00:00
Sebastian Bazley
ff3c66cbc7
Javadoc grammar
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058072 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 11:07:42 +00:00
Phil Steitz
41f6eaa8e3
Updated changelog to reflect fixes for MATH-384, MATH-385.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056747 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 17:50:54 +00:00
Phil Steitz
8ea8869f01
Commented out long-running test case.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056580 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 01:04:04 +00:00
Gilles Sadowski
258918de6b
MATH-459
...
Removed usage of "o.a.c.m.MathRuntimeException".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056554 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 22:59:46 +00:00
Gilles Sadowski
f35ac8ee99
Unused "import".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056516 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 21:19:19 +00:00
Sebastian Bazley
4fc0d428b8
The private fields can now be made final
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056502 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 20:55:34 +00:00
Gilles Sadowski
c8e8d8de18
MATH-422
...
Removed setters. Removed coresponding unit tests.
Added a "getInstance" method so that some tests can still work.
Removed a seemingly unnecessary call to the "clone" method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056493 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 20:33:12 +00:00
Sebastian Bazley
fa4135a048
MATH-466 Fix the same problem in the 3rd class
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056417 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 17:51:44 +00:00
Sebastian Bazley
787d654a60
MATH-466 - update Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056412 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 17:47:14 +00:00
Gilles Sadowski
618f2f80ca
MATH-466
...
Throwing exceptions when preconditions are violated.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056391 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 17:00:57 +00:00
Luc Maisonobe
7578f0f6a0
Fixed an awkward statement that triggered a false positive warning
...
JIRA: MATH-467
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1056035 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 19:43:30 +00:00
Gilles Sadowski
bef6c18699
MATH-458
...
Removed the checked "MathException" from the interpolator interfaces.
Updated all affected classes.
"LoessInterpolator": Replaced usage of "MathException" with specific
exceptions.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055931 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 16:20:51 +00:00
Gilles Sadowski
81d30ccd16
MATH-468
...
Forgot to commit that file!
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055929 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 16:17:25 +00:00
Gilles Sadowski
dd199c3ef8
MATH-468
...
Utility methods to check that an argument is not NaN nor infinite.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055911 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 15:30:23 +00:00
Sebastian Bazley
6acc4ae36d
Add serialVersionUID
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055903 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:52:43 +00:00
Sebastian Bazley
707c93a25f
Suppress NPE warning
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055902 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:52:00 +00:00
Sebastian Bazley
ee61e5660f
Raw type
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055901 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:51:30 +00:00
Sebastian Bazley
9dd33b3ce0
Unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055900 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:51:16 +00:00
Sebastian Bazley
af55bc0057
Unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055885 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:11:32 +00:00
Sebastian Bazley
5024bce8ae
Unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055882 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:07:32 +00:00