sympy icon indicating copy to clipboard operation
sympy copied to clipboard

make cancel canonical for a given expression

Open smichr opened this issue 4 months ago • 10 comments

References to other Issues or PRs

fixes #27096

Brief description of what is fixed or changed

The result of p.cancel(q, include=False) should be the same as P.cancel(Q) if (p/q).equals(P/Q). The domain will match the unified domain of p and q, however, so may be different.

Also, any extractable Rational context will be reported; there will never be a distributed constant in numerator or denominator expressions.

Other comments

Release Notes

NO ENTRY

smichr avatar Sep 29 '24 23:09 smichr