Algebrite icon indicating copy to clipboard operation
Algebrite copied to clipboard

log(a^b) = b*log(a) works when given symbols, but not when given numbers

Open derivitaandrew opened this issue 4 years ago • 0 comments

This is good:

ln(a^b) - b*ln(a) // Expected: 0; Actual: 0

but for some reason, if you use numbers in place of a and b, the simplification no longer works:

ln(2^2) - 2*ln(2) // Expected: 0; Actual: -2*log(2)+log(4)

It will work if a or b is 1, or if b is 0, but not otherwise.

derivitaandrew avatar Aug 18 '20 03:08 derivitaandrew