Is there something wrong with the factorization of expressions containing exponentials ?
I obtain the following strange results (Sagemath 8.6):
factor(exp(-x)+2exp(x)) ---> 3e^x,
factor(exp(-x)+xexp(-x)) ---> (x + 1)e^x
Any suggestions welcomed.