Ask Your Question

Wrong factorization of expressions containing exponentials ?

asked 2019-02-15 06:40:40 -0600

updated 2019-02-16 12:41:25 -0600

slelievre gravatar image

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 flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-02-16 07:55:15 -0600

eric_g gravatar image

updated 2019-02-16 10:26:22 -0600

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.

edit flag offensive delete link more


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

irizos gravatar imageirizos ( 2019-02-16 08:15:17 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2019-02-15 06:40:40 -0600

Seen: 144 times

Last updated: Feb 16 '19