iMath knows the constants %pi and %e and will simplify trigonometric and logarithmic expressions automatically in some (simple) cases.
%pi
%e