Commit Graph

2522 Commits

Author SHA1 Message Date
Sebastian Bazley 485d717636 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/branches/MATH_2_X@1060960 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 20:13:11 +00:00
Sebastian Bazley 6cdfda8ce1 MATH-483 FastMath does not handle all special cases correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060930 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:42:50 +00:00
Sebastian Bazley bda1296ea5 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/branches/MATH_2_X@1060917 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:26:19 +00:00
Sebastian Bazley 5ecbfedb2a 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/branches/MATH_2_X@1060911 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:17:59 +00:00
Sebastian Bazley 839130d338 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/branches/MATH_2_X@1060895 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 18:29:45 +00:00
Sebastian Bazley 06b40fbd01 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/branches/MATH_2_X@1060886 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 17:55:49 +00:00
Sebastian Bazley 0f95495c21 Incorrect test for deprecated method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060488 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 17:35:54 +00:00
Gilles Sadowski 237800189e Javadoc clean-up.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060424 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 15:47:33 +00:00
Sebastian Bazley 386bae61e4 Tab and trailing space removal
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060124 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 23:00:52 +00:00
Sebastian Bazley 21cfd5fe91 Synch comment with double version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060123 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 22:58:22 +00:00
Sebastian Bazley 8de5ef9633 Clarify Javadoc link references
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060119 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 22:48:34 +00:00
Sebastian Bazley 28d2031e4b Remove temporary markers used when creating float methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060118 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 22:44:50 +00:00
Gilles Sadowski 1775178509 MATH-481
Made Javadoc agree with code.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060117 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 22:39:08 +00:00
Sebastian Bazley 94138d5014 Wrong issue number: MATH-491 should be MATH-471
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060083 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 20:30:27 +00:00
Sebastian Bazley 9579702fcf MATH-471 MathUtils.equals(double, double) does not work properly for floats
Added equals(float, float) methods and tests

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060080 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 20:26:34 +00:00
Sebastian Bazley 7aabd3b5a2 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/branches/MATH_2_X@1060065 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 20:00:57 +00:00
Phil Steitz d3dda59bef Moved new method from interface to impl, fixing compatability break.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1059406 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 19:55:51 +00:00
Phil Steitz 969ca1e0df Moved new method from interface to impl, fixing compatability break.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1059402 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 19:47:29 +00:00
Phil Steitz 59c534c537 Reverted incompatible change.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1059400 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 19:35:27 +00:00
Phil Steitz 6766e79cb6 Removed test deprecation. JIRA: MATH-470.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1058268 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 18:36:57 +00:00
Sebastian Bazley 335a0f0e51 Javadoc grammar
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1058071 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 11:07:15 +00:00
Phil Steitz 67aeec1c59 Updated changelog to reflect fixes for MATH-384, MATH-385.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1056747 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 17:50:54 +00:00
Luc Maisonobe 1bd2cf335c 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/branches/MATH_2_X@1056034 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 19:41:43 +00:00
Sebastian Bazley 2ab36c868f Missing @Overrides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1055914 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 15:34:34 +00:00
Sebastian Bazley e83010dcd9 Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1055912 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 15:30:39 +00:00
Phil Steitz 79c2fc7a52 Restored backward compatibility in distributions classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054524 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 04:59:18 +00:00
Phil Steitz 7218e827a4 Added filter for spurious dead store warning.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054344 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 02:56:35 +00:00
Phil Steitz 4e9933e40c 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/branches/MATH_2_X@1054342 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 01:46:22 +00:00
Phil Steitz f12f5e93d8 Eliminate trailing space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054341 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 01:24:00 +00:00
Phil Steitz d9b4eface7 Javadoc. Added missing param tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054340 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 01:18:04 +00:00
Phil Steitz 8f2457f593 Fixed checkstyle errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054337 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 01:06:45 +00:00
Phil Steitz c156bfd94b Javadoc. Drop extaneous params..
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054333 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 00:34:58 +00:00
Phil Steitz 94b6e24880 Corrected exception type.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054329 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 00:11:33 +00:00
Phil Steitz 4732784752 Corrected exception type.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054322 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 23:43:50 +00:00
Phil Steitz 564933e946 Added package description.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054315 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 23:22:24 +00:00
Phil Steitz 1105860d5a Hide constructor for utility class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054310 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 23:11:57 +00:00
Phil Steitz 938c46195c Fixed checkstyle errors: hidden fields, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054306 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 22:50:02 +00:00
Phil Steitz 78647e53f5 Fixed checkstyle errors: missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054302 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 22:19:24 +00:00
Phil Steitz 21aec75a5b Fixed checkstyle errors: extra parens, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054299 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 21:59:14 +00:00
Phil Steitz 1a7d9a0d48 Fixed checkstyle errors: hidden field, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054298 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 21:45:35 +00:00
Phil Steitz 3cca30313c Fixed checkstyle errors: operator placement, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054297 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 21:35:42 +00:00
Phil Steitz 4efd7a73c1 Fixed checkstyle errors: hidden fields, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054289 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 21:06:29 +00:00
Phil Steitz 86d9a10330 Fixed checkstyle errors: missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054287 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 20:37:28 +00:00
Phil Steitz 9b07304735 Fixed checkstyle errors: hidden fields, missing javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054280 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 20:15:27 +00:00
Phil Steitz d5bbb312cb Removed trailing space.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054279 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 20:12:54 +00:00
Phil Steitz 8c16f5de53 Removed trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054276 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 19:44:36 +00:00
Phil Steitz 3df53c9cdb Javadoc only. Added missing @throws tag.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054275 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 19:36:43 +00:00
Phil Steitz 5f1658ba9f Fixed Checkstyle nits: repeated string, (spurious) hidden field.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054274 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 19:29:31 +00:00
Phil Steitz 829eacca74 Added missing javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054187 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 02:41:35 +00:00
Phil Steitz c1af4d2094 Eliminated tabs and trailing spaces. Formatting only.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1054186 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 02:28:46 +00:00