Skip to content

Commit

Permalink
set version to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelliao committed May 13, 2020
1 parent 7ff50d1 commit 2867fd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.itranswarp</groupId>
<artifactId>complex</artifactId>
<version>1.0.1</version>
<version>1.0.3</version>
<packaging>jar</packaging>

<name>complex</name>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/itranswarp/math/ComplexUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public static boolean isZero(Complex c) {
return c.getReal() == 0 && c.getImaginary() == 0;
}

public static boolean isImageZero(Complex c) {
return c.getImaginary() == 0;
}

public static double abs(Complex c) {
double r = Math.sqrt(c.getReal() * c.getReal() + c.getImaginary() * c.getImaginary());
if (log.isDebugEnabled()) {
Expand Down

0 comments on commit 2867fd7

Please sign in to comment.