>>> from sympy import Symbol,Function
>>> x = Symbol('x')
>>> f = Function('f')(x)
>>> f
f(x)
>>> type(f)
f
>>> type(f(x))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.6/dist-packages/sympy-0.6.7_git-py2.6.egg/sympy/core/basic.py",
line 1310, in __call__
raise TypeError("argument must be a dictionary")
TypeError: argument must be a dictionary
>>> f
f(x)
>>> type(x)
<class 'sympy.core.symbol.Symbol'>
>>> f = Function('f')
>>> type(f)
<class 'sympy.core.function.FunctionClass'>
>>>
The question is why on line 7 is type(f) = f while on line 19 type
returns something sensible.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.