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

Commit d5173cda authored by Hans Boehm's avatar Hans Boehm Committed by android-build-merger
Browse files

Handle ln(rational multiple of e) better am: 551f8cb2 am: 5d4756ed

am: 030e3f9f

Change-Id: I98c5e9d1b0805ec8925b009ec356fdee422a5093
parents 3d3468a1 030e3f9f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1011,6 +1011,9 @@ public class UnifiedReal {
    }

    public UnifiedReal ln() {
        if (mCrFactor == CR_E) {
            return new UnifiedReal(mRatFactor, CR_ONE).ln().add(ONE);
        }
        if (isComparable(ZERO)) {
            if (signum() <= 0) {
                throw new ArithmeticException("log(non-positive)");