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
Sebastian Bazley
fa3025dac8
Javadoc - no such param
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055881 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 14:05:51 +00:00
Gilles Sadowski
2399c99f9e
Unnecessary "return".
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055864 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 13:21:17 +00:00
Gilles Sadowski
fc20a308d7
MATH-461
...
"RealVectorFormat", "ComplexFormat", "Vector3DFormat" do not inherit anymore
from the Java standard "Format". Removed methods that were mandated by this base
class (because they were not compatible with the new policy that CM should only
throw unchecked exceptions).
"CompositeFormat" now contains only static methods: Made it a utility class
(i.e. with a "private" constructor).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055835 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 11:32:07 +00:00
Phil Steitz
0441b7cc6d
Fixed javadoc typos.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054702 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 18:36:40 +00:00
Phil Steitz
73d52a51f8
Added filter for spurious dead store warning.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054344 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 02:56:35 +00:00
Phil Steitz
3be3e7c290
Modified constructor added in the fix for JIRA: MATH-384 to copy, rather than reference the input array.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054342 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 01:46:22 +00:00
Phil Steitz
0958d5c296
Javadoc. Added missing param tag.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054340 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 01:18:04 +00:00
Phil Steitz
5f455507ee
Javadoc. Drop extaneous params..
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054333 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 00:34:58 +00:00
Phil Steitz
f554371027
Added package description.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1054315 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 23:22:24 +00:00