numerator = numerator.getFirstConsCell();
denominator = denominator.getFirstConsCell();
BigDec num = new BigDec(parser.run(numerator.length() > 0 ? numerator.remove() : new ConsCell(BigDec.ONE, ConsType.NUMBER)).toString());
BigDec den = new BigDec(parser.run(denominator.length() > 0 ? denominator.remove() : new ConsCell(BigDec.ONE, ConsType.NUMBER)).toString()), gcd = num.gcd(den);
num = num.divide(gcd);
den = den.divide(gcd);
ConsCell output = new ConsCell(num, ConsType.NUMBER, new ConsCell('/', ConsType.OPERATOR, new ConsCell(den, ConsType.NUMBER))).getLastConsCell();
for (ConsCell key : orders) {
ConsCell exp = orders.get(key);
if (exp.length() == 1 && exp.getCarType() == ConsType.NUMBER) { //If the exponent is a real number
if (((BigDec) exp.getCar()).eq(BigDec.ZERO))