Fixed small warning
This commit is contained in:
parent
8455ba5a43
commit
c344856989
1 changed files with 65 additions and 65 deletions
2
src/zutil/math/ZMath.java
Normal file → Executable file
2
src/zutil/math/ZMath.java
Normal file → Executable file
|
|
@ -65,7 +65,7 @@ public class ZMath {
|
||||||
public static BigInteger[] pqFormula(BigInteger p, BigInteger q){
|
public static BigInteger[] pqFormula(BigInteger p, BigInteger q){
|
||||||
BigInteger[] ret = new BigInteger[2];
|
BigInteger[] ret = new BigInteger[2];
|
||||||
BigInteger t = p.divide( BigInteger.valueOf(2) );
|
BigInteger t = p.divide( BigInteger.valueOf(2) );
|
||||||
ret[0] = ZMath.sqrt( t.multiply( t ).subtract( q ) );
|
ret[0] = sqrt( t.multiply( t ).subtract( q ) );
|
||||||
ret[1] = ret[0].negate();
|
ret[1] = ret[0].negate();
|
||||||
t = t.negate();
|
t = t.negate();
|
||||||
ret[0] = ret[0].add( t );
|
ret[0] = ret[0].add( t );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue