Last Updated 04/18/2017

Sage Essentials
Section 1: Numerical Calculations

Doing Exact Arithmetic with Sage

Example 10

There may be times when you want to enter more than one command before the evaluation. Enter each command on a separate line with show() and press [Enter]. When you press the button all of the expressions are executed and the results are listed, in order, in a single output field.

You can also enter the commands on a single line. This is okay to do in Sage, just be sure to use show() and end each command with a semicolon. It also helps to put spaces between the commands. The result will be the same.


← Previous Example Next Example →