Mathematica/Getting Started
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Installation
If you have just obtained a copy of Mathematica, you will need to install it on your system. To do this, you should follow the instructions that come with your copy.
[edit] Interfacing with Mathematica
Mathematica runs as a "kernel" which performs the calculations and the "front-end" with which it communicates with the user by input and output. Mathematica can be used either through interactive "notebook" files or through a command prompt-style text interface.
[edit] Notebook Interface
The notebook style interface can be started by clicking a Mathematica icon or a Mathematica entry on the start menu. When this is done, a blank notebook is opened.
You can then input commands into the notebook inteface. Pressing Shift-Enter executes the command and produces the output you desire.
When a command is executed, it is labeled automatically by In[n]:=, where "n" is a unique identifier (for that session) for your input. The corresponding output is labeled Out[n]:=. For example, consider the following command where you add 2 and 3. You simply type "2+3 and press Shift-Enter. The notebook will then display the following:
In[1]:= 2+3
Out[1]= 5
[edit] Quitting
To quit the notebook, you may click the "X" in the top-right of the notebook window, or press Ctrl-F4 or select the Close menu item in the File menu. This will prompt you to save if the notebook has been edited since the last save. To close the whole of Mathematica, click the "X" in the top right of the Mathematica window, or select the Exit option on the File menu.