Mathematica 9 is now available

Documentation / Mathematica / The Mathematica Book / A Practical Introduction to Mathematica / Input and Output in Notebooks /

1.10.6 Subscripts, Bars and Other Modifiers

Here is a typical palette of modifiers.

Mathematica allows you to use any expression as a subscript.

In[1]:=

Out[1]=

Unless you specifically tell it otherwise, Mathematica will interpret a superscript as a power.

In[2]:=

Out[2]=

Special input forms based on control characters. The second forms given should work on any keyboard.

This enters a subscript using control keys.

In[3]:= Expand[(1 + xControlKeyLeftModified_RightModified1+nControlKeyLeftModifiedRightModified)^4]

Out[3]=

Just as ControlKeyLeftModified^RightModified and ControlKeyLeftModified_RightModified go to superscript and subscript positions, so also ControlKeyLeftModified&RightModified and ControlKeyLeftModified=RightModified can be used to go to positions directly above and below. With the layout of a standard English-language keyboard ControlKeyLeftModified&RightModified is directly to the right of ControlKeyLeftModified^RightModified while ControlKeyLeftModified=RightModified is directly to the right of ControlKeyLeftModified_RightModified.

Ways to enter some common modifiers using control keys.

Here is .

In[4]:= x ControlKeyLeftModified&RightModified_ ControlKeyLeftModified RightModified

Out[4]=

You can use as a variable.

In[5]:= Solve[a^2 == %, a]

Out[5]=

Ways to enter modifiers without control keys. All these forms can be used only inside \!\( ... \).



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.