Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7fc903f authored by Hans Boehm's avatar Hans Boehm Committed by Android (Google) Code Review
Browse files

Merge "Add special case for exp(1) evaluation." into ub-calculator-euler

parents e5567fd0 e7111cfb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1062,6 +1062,10 @@ public class UnifiedReal {
        if (definitelyEquals(ZERO)) {
            return ONE;
        }
        if (definitelyEquals(ONE)) {
            // Avoid redundant computations, and ensure we recognize all instances as equal.
            return E;
        }
        final BoundedRational crExp = getExp(mCrFactor);
        if (crExp != null) {
            if (mRatFactor.signum() < 0) {