Open sage.terminal, to get started type sage
To define in sage
use Integers(n)
.
Note: pressing tab is for autocompletion, but it also can be used for discovring what sage hides. A very useful tip is to use ?
after function name to get its documentation.
To define in sage
use Integers(n)
.
Note: pressing tab is for autocompletion, but it also can be used for discovring what sage hides. A very useful tip is to use ?
after function name to get its documentation.
Example:
To define Dihedral group of order , use DihedralGroup(n)
The previous notation might looks alien to you, but we are going to study it in next lecture. It is very powerful.
We have not studied subgroups yet.
Defining subgroups is easy and natural in sage. Let G be a group, and be a subgroup of G.
You might enjoy playing with H.is_