kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
226 stars 37 forks source link

Collecting factors in expressions with non-unit factors triggers an assert #290

Open kpeeters opened 8 months ago

kpeeters commented 8 months ago

E.g.

collect_factors($(-X)**{-5/2} X$);

or even

collect_factors($(3 X)**{-5/2} X$);

See https://cadabra.science/qa/2726/operations-with-fractional-powers-of-negative-numbers.