FeynCalc / feyncalc

Mathematica package for algebraic calculations in elementary particle physics.
https://feyncalc.github.io
GNU General Public License v3.0
310 stars 87 forks source link

Fix an infinite loop in ExpandAll2[]. #45

Closed HBelusca closed 5 years ago

HBelusca commented 5 years ago

The default case of the Switch[] call now returns the actual expression with which it has been called, instead of returning the original "expr". This makes FixedPoint[] correctly stop instead of possibly looping forever.

A test case:

ExpandAll2[-2 a + 2 b + 2 (a - b)]