Operators and variables are two fundamental elements of numerical computing. Sage uses the Python programming language as the interface for all of its components, so writing code for Sage is very similar to writing Python code. Sage extends the Python language with additional types that are well suited for mathematical calculations. In this section, we'll learn more about how operators and variables work in Sage.
The following table lists the operators that are available in Sage:
Note that the assignment operator is a single equal sign, while the test for equality is a double equal sign. The following example illustrates the difference...