Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1561 by tom.denniston: lambdify doesn't seem to work with logic
operations
http://code.google.com/p/sympy/issues/detail?id=1561
I'm using sympy 0.6.5
I took an example from the docs on the logic module y|x&y and I tried to
use the lambdify function on it. It failed saying "Or" was undefined:
>>> x,y = sympy.symbols('x y')
>>> expr = (y | (x & y)
>>> sympy.lambdify(['x','y'],expr, modules = ['numpy'])(1,[0,1])
I can fake it by doing this, but you can see why this would be non-ideal:
>>> sympy.lambdify(['x','y','Or','And'],expr, modules = ['numpy'])(1,[0,1],
Or = numpy.logical_or, And = numpy.logical_and)
array([False, True], dtype=bool)
It seems the functionality to construct the namespace doesn't have support
for the logic operators.
--
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 [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
-~----------~----~----~----~------~----~------~--~---