Comment #9 on issue 1211 by asmeurer: Getting a value of a function does
not work or is not possible
http://code.google.com/p/sympy/issues/detail?id=1211
Right now, everything is callable as a shortcut to subs, with the
dictionary version only accepted. The exception
is functions, which use call for their args, and apparently symbols, which
does the same:
In [5]: (x**2)({x:y})
Out[5]:
2
y
In [6]: f(y)
Out[6]: f(y)
In [7]: x(y)
Out[7]: x(y)
So what should a Symbol do on call?
If everything had only one symbol in it then (x**2)(2) would make sense,
but the real problem is that something
like (x*y**2)(1, 2) is ambiguous.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.