Kernel: SageMath (system-wide)
Part 2. Assignment, Equality, and Arithmetic
With some minor exceptions, Sage uses the Python programming language, so most introductory books on Python will help you to learn Sage. Sage can do much that your favorite computer algebra system has to offer. Sage uses = for assignment. It uses == , <= , >= , < and > for comparison:
In [3]:
In [4]:
5
Logical Statments
In [5]:
True
In [6]:
False
In [8]:
In [9]:
True
In [11]:
False
Sage provides all of the basic mathematical operations
In [13]:
6
In [14]:
8
In [15]:
8
In [17]:
1
In [18]:
5/2
In [19]:
2
In [20]:
False