Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

log(e) won't convert to 1

Is there a way to make log(e) print as 1? I know they're equal but I can't get sage to do that, and in complex expressions it's tedious to redo all the log(e)s.

f(x) = e^x*cos(x)
f_int(x) = integrate(f,x)
f_int(x)
result
(e^x*cos(x)*log(e) + e^x*sin(x))/(log(e)^2 + 1)
click to hide/show revision 2
retagged

log(e) won't convert to 1

Is there a way to make log(e) print as 1? I know they're equal but I can't get sage to do that, and in complex expressions it's tedious to redo all the log(e)s.

f(x) = e^x*cos(x)
f_int(x) = integrate(f,x)
f_int(x)
result
(e^x*cos(x)*log(e) + e^x*sin(x))/(log(e)^2 + 1)