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)
```

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.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.