You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2018/03/14 11:53:58 UTC

commons-numbers git commit: NUMBERS-64: Removed "norm" method

Repository: commons-numbers
Updated Branches:
  refs/heads/master f9076f094 -> ad5e98f8b


NUMBERS-64: Removed "norm" method

Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/ad5e98f8
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/ad5e98f8
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/ad5e98f8

Branch: refs/heads/master
Commit: ad5e98f8b6d11a23ac8aede34ef302d654021b7b
Parents: f9076f0
Author: Eric Barnhill <er...@apache.org>
Authored: Wed Mar 14 12:56:33 2018 +0100
Committer: Eric Barnhill <er...@apache.org>
Committed: Wed Mar 14 12:56:33 2018 +0100

----------------------------------------------------------------------
 .../org/apache/commons/numbers/complex/Complex.java     | 12 ------------
 1 file changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/ad5e98f8/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
----------------------------------------------------------------------
diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index 3a7fd21..d91c2f1 100644
--- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -203,18 +203,6 @@ public class Complex implements Serializable  {
     }
 
     /**
-     * Return the norm of this complex number, defined as the square of the magnitude
-     * in the <a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/cproj.html">
-     * IEEE and ISO C standards</a>.
-     *
-     * @return the norm.
-     */
-    public double norm() {
-        final double a = abs();
-        return a * a;
-    }
-
-    /**
      * Returns a {@code Complex} whose value is
      * {@code (this + addend)}.
      * Uses the definitional formula