Introduction_to_Mathematica

Introduction_to_Mathematica - Enter your name(s) here:...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Enter your name(s) here: Computer Assignment: Introduction to Mathematica Purpose: To provide a brief introduction to the Mathematica computing environment and to use Mathematica to solve systems of linear equations. Prerequisite Reading: Section 1.1 Mathematica Functions: Clear, MatrixForm, Needs, ReplaceRow, Scale, Swap, TableForm. Palette used in this assignment : To use the following palette, click on the right cell bracket containing the palette (or click anywhere inside the palette cell) and then choose General Palette from Selection from the File menu to create a separate window containing the palette. Drag the palette window to the far right side of the screen and resize the notebook window if necessary so that the notebook and palette do not overlap. L N M M f f f f \ ^ ] ] f cccc f f f ± ReplaceRow # f , f , f , f ' Swap # f , f , f ' Scale # f , f , f ' ReplaceRow # % ²f , f , f , f ' Swap # % ²f , f , f ' Scale # % ²f , f , f ' Mathematica Arithmetic Mathematica can be thought of as a sophisticated calculator, able to perform exact as well as approxi- mate arithmetic computations. As you read through this file, you will be asked to execute the contents of input cells (shaded cells like the one immediately below this paragraph). As a first example, you will add the fractions appearing in the following input cell. Using your mouse, click anywhere inside the following shaded cell and then press Shift+Enter to perform the calculation (simply pressing Enter may be sufficient to perform the calculation on some machines). A window will appear asking if you would like to evaluate initialization cells contained in this notebook - click on Yes. (Initializa- tion cells will be discussed at the end of this assignment.) 552291 cccccccccccccccc 67158 ± 225555 cccccccccccccccc cccc 4512874
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
You may notice that Mathematica took a relatively long time to perform this simple calculation. This is due to the fact that on many computer platforms, the bulk of the Mathematica program is not loaded into memory until the first Mathematica operation is executed. Also note that the output to our first calculation is an exact answer in rational form (i.e., the output is expressed as the fraction of two integers). Exercise 1 Compute 1 cccccc 31 ± 5 cccccc 72 with Mathematica . To do this, in the open space immediately below this cell and before the following cell entitled Arithmetic Operations, click the mouse button and a horizontal line will appear marking the location of the new cell you are about to create. Next, on the palette, click on the button containing f cccc f . Enter 1, then press Tab (or click on the denominator with your mouse) and then enter 31. (Another method is to type in 1/31 from the keyboard.) Next, press the right arrow button ( ² ) on the keyboard to move the cursor to the right of the fraction. Press the plus (+) and then enter the second fraction. Finally, press Shift+Enter to execute the command. Arithmetic Operations
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/16/2009 for the course MATH 220 taught by Professor Lewis during the Fall '08 term at Washington State University .

Page1 / 9

Introduction_to_Mathematica - Enter your name(s) here:...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online