[sympy] Re: deriving from sympy.Function: object not callable

2015-07-16 Thread Nico
Got it: As outlined in [1], what is mathematically perceived as a "function" is a class in terms of sympy, not an instance thereof. --Nico [1] http://docs.sympy.org/latest/modules/functions/index.html On Thursday, July 16, 2015 at 9:53:17 AM UTC+2, Nico wrote: > > Following up on question [1],

Re: [sympy] Re: deriving from sympy.Function: object not callable

2015-07-16 Thread Aaron Meurer
Yes, unfortunately, Function acts differently when subclassed. What you want to do, I believe, is create a custom subclass of Function with the metaclass UndefinedFunction. It's worth taking a look at the source code of Function to see how it works. Aaron Meurer On Thu, Jul 16, 2015 at 4:31 AM,