First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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)
click to hide/show revision 2
No.2 Revision

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.