Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  The Teacher's Book /  Basic Calculations /  Numerical Calculations /

2.6 Mathematical Notation in Notebooks

If you use a text-based interface to Mathematica TE, then the input you give must consist only of characters that you can type directly on your computer keyboard. But if you use a notebook interface then other kinds of input become possible.
Usually there are palettes provided that operate like extensions of your keyboard and have buttons that you can click to enter particular forms. You can typically access standard palettes using the Palettes submenu of the File menu.

Clicking the button in this palette will enter a pi into your notebook.

Clicking the first button in this palette will create an empty structure for entering a power. You can use the mouse to fill in the structure.

You can also give input by using special keys on your keyboard. Pressing one of these keys does not lead to an ordinary character being entered, but instead typically causes some action to occur or some structure to be created.

A few ways to enter special notations on a standard English-language keyboard.

Here is a computation entered using ordinary characters on a keyboard.

In[1]:= N[Pi^2/6]

Out[1]=

Here is the same computation entered using a palette or special keys.

In[2]:=

Out[2]=

Here is an actual sequence of keys that can be used to enter the input.

In[3]:= N[ EscapeKeypEscapeKey ControlKey LeftModified^RightModified 2 ControlKey LeftModified RightModified ControlKey LeftModified/RightModified 6 ControlKey LeftModified RightModified ]

Out[3]=

In a traditional computer language such as C or Fortran, the input you give must always consist of a string of ordinary characters that can be typed directly on a keyboard. But the Mathematica TE language also allows you to give input that contains special characters, superscripts, built-up fractions, and so on.
The language incorporates many features of traditional mathematical notation. But you should realize that the goal of the language is to provide a precise and consistent way to specify computations. And as a result, it does not follow all of the somewhat haphazard details of traditional mathematical notation.
Nevertheless, as discussed in Section 11.9, it is always possible to get Mathematica TE to produce output that imitates every aspect of traditional mathematical notation. And as discussed in Section 11.9, it is also possible for Mathematica TE to import text that uses such notation, and to some extent to translate it into its own more precise language.