You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The a*b product is a PseudoPolynomial, however the b*a product is a Polynomial; I'm pretty sure this is because Python will attempt to evaluate b.__mul__(a) before a.__rmul__(b), and I don't see any way to work around that...
Any suggestions or is this a necessary evil? It doesn't affect the rest of the code in any way, and the "rest of the code" is the entire reason the PseudoPolynomial class exists in the first place, so this is an extremely minor problem.
The text was updated successfully, but these errors were encountered:
The
a*b
product is aPseudoPolynomial
, however theb*a
product is aPolynomial
; I'm pretty sure this is because Python will attempt to evaluateb.__mul__(a)
beforea.__rmul__(b)
, and I don't see any way to work around that...Any suggestions or is this a necessary evil? It doesn't affect the rest of the code in any way, and the "rest of the code" is the entire reason the
PseudoPolynomial
class exists in the first place, so this is an extremely minor problem.The text was updated successfully, but these errors were encountered: