Last Updated 04/18/2017

Sage Essentials
Section 2: Algebraic Calculations

The .sub command

Example 3

The .sub command is very versatile. You can use it to evaluate expressions involving more than one variable. Here we replace x by 1 and y by 2 in the expression w=x2+ y21.


← Previous Example Next Example →