There are two types of subscript in Maple, index and literal. For further information, please visit the help page.
From the Expressions Palette, these subscripts can be entered by selecting the appropriate button.
Viewing and Switching Variable Type
A variable with a literal subscript is an 'atomic' variable.
You are able to view which of your variables are atomic by going to the
View menu and selecting
To convert from indexed variables to atomic variables right click the variable then select
2-D Math >
Convert To >
This type of subscript is a reference to an element of a data container, it is also the type of subscript used with some operators such as the Differential Operator D. For example:
A := [4,5,6]; A; # returns 4 type( A, indexed );
In 2D Math inputting:
⇧Shift+ _ + 1
⇧Shift+ _ + 1
will display A1.
From the Expressions Palette on the left this is the with the green 'a' and pink 'n' on the left.
Atomic Variables / Literal Subscripts
Typing two underscores together produces a full symbol that is not indexed. In 2D Math input, B +
⇧Shift + _+ _ + 1 will display as B1 similar to the above indexed variable, but it is treated as a symbol:
type( B__1, symbol ); # returns "true"
From the Expressions Palette on the left this is the with the pink 'a' and pink 'n' on the right.
If you set
interface( prettyprint = 1 ):
then the Maple output will clearly distinguish between the two types of subscripts.