Ask Your Question

# Wrong factorization of expressions containing exponentials ?

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

Any suggestions welcomed.

edit retag close merge delete

## 1 Answer

Sort by ยป oldest newest most voted

Thanks for the report. Looks like a terrible bug! It was introduced in SageMath 8.4: it is already there, while in SageMath 8.3, we get a mathematically correct result:

sage: factor(exp(-x)+2*exp(x))
(2*e^(2*x) + 1)*e^(-x)


I've opened the Trac ticket #27304 for it.

more

## Comments

Thanks a lot for the reply. The bug is also present in cocalc.

( 2019-02-16 15:15:17 +0200 )edit

## Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

## Stats

Asked: 2019-02-15 13:40:40 +0200

Seen: 503 times

Last updated: Feb 16 '19