Lines Matching refs:negate
128 .setBit(16).subtract(two).negate()));
224 assertTrue("bi3=copy of bi3", bi3.equals(bi3.negate().negate()));
236 two.negate().compareTo(one) < 0);
272 .add(aZillion.negate()).equals(aZillion));
302 * @tests java.math.BigInteger#negate()
306 .negate().equals(zero));
308 !aZillion.negate().equals(aZillion));
310 aZillion.negate().negate().equals(aZillion));
312 assertTrue("0.neg", zero.negate().equals(zero));
313 assertTrue("1.neg", one.negate().equals(minusOne));
314 assertTrue("2.neg", two.negate().equals(minusTwo));
315 assertTrue("-1.neg", minusOne.negate().equals(one));
316 assertTrue("-2.neg", minusTwo.negate().equals(two));
318 0x62EB40FEF85AA9EBL * 2).negate().equals(
322 BigInteger negate = midbit.negate();
323 assertTrue("negate negate", negate.negate().equals(midbit));
324 assertTrue("neg fails on bit " + i, midbit.negate().add(midbit)
335 assertTrue("Wrong neg zero signum", zero.negate().signum() == 0);
336 assertTrue("Wrong neg signum", two.negate().signum() == -1);
343 assertTrue("Invalid number returned for zillion", aZillion.negate()
345 assertTrue("Invalid number returned for zero neg", zero.negate().abs()
348 assertTrue("Invalid number returned for two", two.negate().abs()
444 BigInteger E = bi3.negate();
583 bi3.negate().divide(zero);
612 bi3.negate().remainder(zero);
641 bi3.negate().mod(zero);
670 bi3.negate().divideAndRemainder(zero);
944 for (BigInteger j = bound.negate(); j.compareTo(bound) <= 0; j = j
974 assertTrue("-i1*i2=-ans", i1.negate().multiply(i2).equals(ans.negate()));
975 assertTrue("-i2*i1=-ans", i2.negate().multiply(i1).equals(ans.negate()));
976 assertTrue("i1*-i2=-ans", i1.multiply(i2.negate()).equals(ans.negate()));
977 assertTrue("i2*-i1=-ans", i2.multiply(i1.negate()).equals(ans.negate()));
978 assertTrue("-i1*-i2=ans", i1.negate().multiply(i2.negate()).equals(ans));
979 assertTrue("-i2*-i1=ans", i2.negate().multiply(i1.negate()).equals(ans));
984 testDiv(i1.negate(), i2);
985 testDiv(i1, i2.negate());
986 testDiv(i1.negate(), i2.negate());