Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 1211 by plaes800: Getting a value of a function does not work or is not possible http://code.google.com/p/sympy/issues/detail?id=1211
In [1]: f = x**2 In [2]: type(f) Out[2]: <class 'sympy.core.power.Pow'> # I would prefer if it was sympy core.Function :) In [3]: f(2) --------------------------------------------------------------------------- NameError Traceback (most recent call last) /home/plaes/<ipython console> in <module>() /usr/lib64/python2.5/site-packages/sympy/core/basic.pyc in __call__(self, *args, **removeme) 1935 #XXX fix the removeme 1936 def __call__(self, *args, **removeme): -> 1937 return Function(self[0])(*args) 1938 1939 def __float__(self): NameError: global name 'Function' is not defined -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-issues@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---