-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Description
just to write this down (will look into it when time allows)
Using python3.5 ppa:symengine on Ubuntu 16.04:
>>> import symengine
>>> x, y, z = symengine.symbols('x y z')
>>> expr1, expr2 = x+y+z, x*y*z
>>> callback = symengine.LambdifyCSE([x, y, z], [expr1, expr2])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "symengine/lib/symengine_wrapper.pyx", line 2846, in symengine.lib.symengine_wrapper.LambdifyCSE (/build/python-symengine-Hx0GFi/python-symengine-0.2.0-ubuntu2/build/lib.linux-x86_64-3.5/symengine/lib/symengine_wrapper.cpp:70862)
ValueError: need more than 0 values to unpack
>>> callback = symengine.Lambdify([x, y, z], [expr1, expr2])
>>> callback([2, 3, 4])
array([ 9., 24.])
Metadata
Metadata
Assignees
Labels
No labels