Comment #15 on issue 797 by [email protected]: bug in Lambda
http://code.google.com/p/sympy/issues/detail?id=797
I cannot replicate this issue. I get a different error.
In [30]: f = Function('f')
In [31]: x = Symbol('x')
In [32]: H = Lambda(f(x), diff(f(x), x, x) + x**2 *f(x))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/prasoon/work/sympy/<ipython-input-32-cc56cac7e8bf> in <module>()
----> 1 H = Lambda(f(x), diff(f(x), x, x) + x**2 *f(x))
/home/prasoon/work/sympy/sympy/core/function.pyc in __new__(cls, variables,
expr)
1218 assert v.is_Symbol
1219 except (AssertionError, AttributeError):
-> 1220 raise ValueError('variable is not a Symbol: %s' % v)
1221 try:
1222 variables = Tuple(*variables)
ValueError: variable is not a Symbol: f(x)
When I try using a symbol instead of f(x), say y, then the diff(y, x, x)
term vanishes (as it should). Can anyone confirm this behaviour? Or am I
doing something wrong?
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.