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/02/02 00:44:25 UTC

[2/2] commons-numbers git commit: Self-documenting.

Self-documenting.


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

Branch: refs/heads/master
Commit: ac1975ce8826cc668823de2cd36d1fa612b301a7
Parents: bcbfee1
Author: Gilles Sadowski <gi...@harfang.homelinux.org>
Authored: Fri Feb 2 01:42:00 2018 +0100
Committer: Gilles Sadowski <gi...@harfang.homelinux.org>
Committed: Fri Feb 2 01:42:00 2018 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/commons/numbers/complex/Complex.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/ac1975ce/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 125a0b4..7187507 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
@@ -1117,7 +1117,7 @@ public class Complex implements Serializable  {
      * @return the square root of <code>1 - this<sup>2</sup></code>.
      */
     public Complex sqrt1z() {
-        return ONE.subtract(multiply(this)).sqrt();
+        return ONE.subtract(square()).sqrt();
     }
 
     /**