First time here? Check out the FAQ!

Ask Your Question
3

Wrong factorization of expressions containing exponentials ?

asked 6 years ago

updated 2 years ago

tmonteil 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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 6 years ago

eric_g gravatar image

updated 6 years ago

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.

Preview: (hide)
link

Comments

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

irizos gravatar imageirizos ( 6 years ago )

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: 6 years ago

Seen: 811 times

Last updated: Feb 16 '19