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

Capital C can't be used as variable name #122

Open
nicoguaro opened this issue Aug 7, 2018 · 0 comments
Open

Capital C can't be used as variable name #122

nicoguaro opened this issue Aug 7, 2018 · 0 comments

Comments

@nicoguaro
Copy link

I tried the following in SymPy Live

C = 3

and it gave me the following error message:

Exception in SymPy Live of type <type 'exceptions.NameError'>
for reference the last 5 stack trace entries are
Traceback (most recent call last):
  File "/base/data/home/apps/s~sympy-live-hrd/50.411508059631415177/shell.py", line 781, in post live.evaluate(statement, session, printer, stream)
  File "/base/data/home/apps/s~sympy-live-hrd/50.411508059631415177/shell.py", line 453, in evaluate if name not in old_globals or val != old_globals[name]:
  File "/base/data/home/apps/s~sympy-live-hrd/50.411508059631415177/sympy/sympy/core/numbers.py", line 2167, in __ne__ return not self == other
  File "/base/data/home/apps/s~sympy-live-hrd/50.411508059631415177/sympy/sympy/core/numbers.py", line 2164, in __eq__ return Rational.__eq__(self, other)
  File "/base/data/home/apps/s~sympy-live-hrd/50.411508059631415177/sympy/sympy/core/numbers.py", line 1747, in __eq__ other = _sympify(other)
NameError: name 'C' is not defined as a Symbol
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

1 participant