Code example for BigInteger

Methods: dividegcdmultiply

0
 * 
 */ 
public class BigMathUtility { 
 
	public static BigInteger lcm(BigInteger a, BigInteger b){
		return a.multiply(b).divide(a.gcd(b));
	} 
	 
 
	public static BigDecimal Square(BigDecimal a){
		return a.multiply(a);
	} 
	 
	public static BigDecimal getDistance2in2d(BigMathPoint a, BigMathPoint b){
		return Square(a.getX().subtract(b.getX())).add(Square(a.getY().subtract(b.getY())));
	} 
	 
	public static BigDecimal Det(BigMathPoint a, BigMathPoint b, BigMathPoint c){
		return c.getX().subtract(a.getX()).multiply(
				b.getY().subtract(a.getY())