Ask Your Question
3

Wrong factorization of expressions containing exponentials ?

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

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

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
2

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

eric_g gravatar image

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

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

Comments

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

irizos gravatar imageirizos ( 2019-02-16 08:15:17 -0500 )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

Stats

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

Seen: 92 times

Last updated: Feb 16