Get TypeError: 'tuple' object is not callable
Just downloaded sage-8.0-Debian_GNU_Linux_8-x86_64.tar.bz2. Seems to be working well. Great work as always!
Trying to solve simultaneous equations. Get error "TypeError: 'tuple' object is not callable."
Found exactly the examples I needed in Basic Algebra and Calculus. Solving Equations (online Sage reference). Copied and pasted Jason Grout's example and also the examples above it. Get error message "TypeError: 'tuple' object is not callable." in notebook() , but examples work in terminal.
Here is one of the examples that gives the error in notebook() (but works in terminal). sage: x, b, c = var('x b c') sage: solve([x^2 + b*x + c == 0],x)
What am I missing here?
Any ideas? Thanks.
Your example works for me both in a terminal and in a notebook.
A couple questions :
The only reference to a "Jason Groult's example" on equation solving seems to be http://doc.sagemath.org/html/en/tutor... (in the Tutorial, not in the Reference manual). Is that right ?
I cut'n pasted all the examples of the "Solving equations" section in a Jupyter notebook, and they work as advertised. What did you do exactly ?
Emmanuel, you're right about the examples being in the tutorial. Thanks for taking the time to run the equations. Since they worked out for you, the problem is not in the code or Sage. In fact, I no longer get the error about calling tuples. Apparently, there was a conflict with other software on my computer. When I just used the python interpreter, I had to unset PYTHONHOME in order to start the interpreter. Looks like Sage is not the problem here.