Last Updated 04/18/2017

Sage Essentials
Section 2: Algebraic Calculations

The expand command

Example 1

Below are the codes from Example 2 of the last subsection. We can replace x by t+1 in the expression w=x2 +x+1.

And now to get Sage to "multiply out" this expression we use the expand command. There are two ways to do this. Both give the same result!

Try this! Expand the expression (1+x)4


← Previous Example Next Example →