Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in SymPy Live #132

Open
llucifer97 opened this issue Oct 14, 2018 · 1 comment
Open

Exception in SymPy Live #132

llucifer97 opened this issue Oct 14, 2018 · 1 comment

Comments

@llucifer97
Copy link

import numpy # doctest:+SKIP
a = numpy.arange(10) # doctest:+SKIP
expr = sin(x)
f = lambdify(x, expr, "numpy") # doctest:+SKIP
f(a) # doctest:+SKIP

Exception in SymPy Live of type
<type 'exceptions.ValueError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/ssympy-live-hrd/56.412575950366508090/shell.py", line 781, in post
live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s
sympy-live-hrd/56.412575950366508090/shell.py", line 453, in evaluate
if name not in old_globals or val != old_globals[name]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

f = lambdify(x, expr, "numpy") # doctest:+SKIP
Exception in SymPy Live of type
<type 'exceptions.ValueError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/ssympy-live-hrd/56.412575950366508090/shell.py", line 781, in post
live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s
sympy-live-hrd/56.412575950366508090/shell.py", line 453, in evaluate
if name not in old_globals or val != old_globals[name]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
f(a) # doctest:+SKIP
Exception in SymPy Live of type
<type 'exceptions.ValueError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
File "/base/data/home/apps/ssympy-live-hrd/56.412575950366508090/shell.py", line 781, in post
live.evaluate(statement, session, printer, stream)
File "/base/data/home/apps/s
sympy-live-hrd/56.412575950366508090/shell.py", line 453, in evaluate
if name not in old_globals or val != old_globals[name]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
link:https://docs.sympy.org/latest/tutorial/basic_operations.html#lambdify

@bjodah
Copy link
Member

bjodah commented Oct 15, 2018

@llucifer97 would you mind opening this issue over at https://github.com/sympy/sympy-live/issues ?

@asmeurer asmeurer transferred this issue from sympy/sympy Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants