You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/12/10 23:57:25 UTC
[commons-numbers] 03/03: Removed unused field and clarified
multiply() comment regarding NaN.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 32318c672ce084bd2a6f4a791b0f10f210e22f2a
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Dec 10 23:57:18 2019 +0000
Removed unused field and clarified multiply() comment regarding NaN.
---
.../test/java/org/apache/commons/numbers/complex/CStandardTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
index 11a0bc2..1a6deb3 100644
--- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
+++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/CStandardTest.java
@@ -49,7 +49,6 @@ public class CStandardTest {
private static final Complex zeroNegInf = complex(0, negInf);
private static final Complex zeroNaN = complex(0, nan);
private static final Complex zeroPiTwo = complex(0.0, piOverTwo);
- private static final Complex negZeroPiTwo = complex(-0.0, piOverTwo);
private static final Complex negZeroZero = complex(-0.0, 0);
private static final Complex negZeroNaN = complex(-0.0, nan);
private static final Complex negI = complex(0.0, -1.0);
@@ -637,7 +636,7 @@ public class CStandardTest {
// ISO C Standard in Annex G is missing an explicit definition of how to handle NaNs.
// We will assume multiplication by (nan,nan) is not allowed.
// It is undefined how to multiply when a complex has only one NaN component.
- // The reference implementation allows it.
+ // The reference implementation in Annex G allows it.
// The GNU g++ compiler computes:
// (1e300 + i 1e300) * (1e30 + i NAN) = inf + i inf