Re: [sympy] Re: Why is Mod a Function and Pow an Expr?

2012-02-07 Thread Aaron Meurer
Well it doesn't matter to me if it does or not. What should be the distinction for objects that do or do not derive from Function? The fact that they represent an arithmetical operation? If so, maybe we should have a logical base class for Pow, Mul, Add, Mod, ... Looking at the code, deriving f

[sympy] Re: Why is Mod a Function and Pow an Expr?

2012-02-07 Thread miham
Renato Coutinho made the initial implementation in PR 442 [1] where Aaron suggested that Mod should inherit from Function. Renato didn't have time to finish that PR, so I did it in PR 834 [2]. Maybe Aaron can tell you more. [1] https://github.com/sympy/sympy/pull/442 [2] https://github.com/sympy/