How to evaluate a notebook? 1 Basics of Numbers

advertisement
How to evaluate a notebook?
Let us see how a Mathematica notebook can be evaluated.
Step 1. Click on the Chapter title in the Content.nb notebook, e.g.
1 Basics of Numbers
you will get a new notebook on your screen,
1 Basics of Numbers
1-1 Integers
1- 2 Rationals
1- 3 Reals
1- 4 Complexes
1- 5 Quaternions
Step 2. Click on the cell dingbat of the Section (triangle) you wish to open, you will get e.g.
1-1 Integers
When undertaking Geodetic and Geoinformatics operations such as measurements of angles, distances, gravity, photo
coordinates, digitizing of points etc., numbers are often used.
To circumvent the failure of the natural numbers to be closed under subtraction, negative numbers were introduced where
they were added in front of a natural number n i.e. - n. This expanded set is the set of integers. The letter Z is adopted from
the first letter of the German word for integers “Zahl”,
In[1]:=
Clear@"Global‘*"D
n1 = 89; n2 = 123;
Operations,
n3 = n1 + n2; n4 = n1 - n2; n5 = n1 n2;
One can check the type of a variable, x with function Head[x]
2
Untitled-1
Map@Head@ðD &, 8n3, n4, n5<D
8Integer, Integer, Integer<
Step 3 Evaluate notebook commands one by one. E.g. put the cursor (’
) at the end of the instruction,
Clear@"Global‘*"D ’
then evalute it by pushing long Enter (Enter in the numerical pad), alternatively by pushing Shift + Enter (especially on a
laptop).
Put the cursor after the next instruction,
n1 = 89; n2 = 123; ’
and repeat pushing long Enter, and so on.
More information can be found in Mathematica Help. Select Help ®Documentation Center and write in the search window:
tutorial/GettingStartedOverview
Download