code: public BigRational reduce() {
  		BigInteger n = numerator.toBigInteger();
  		BigInteger d = denominator.toBigInteger();
  
  		BigInteger gcd = n.gcd(d);
  		n = n.divide(gcd);
  		d = d.divide(gcd);
  
  		return valueOf(n, d);
  	}
docs: Reduces this rational number to the smallest numerator/denominator with the same value.
  
  @return the reduced rational number