Basic arithmetic operations are easy to enter in Mathematica. You may use your choice of notation, and you may choose to enter symbols via the palettes or the keyboard.
|4, ,+, ,4
Spaces are optional.
A space can mean multiplication as well...
...but you should be careful.
You can also use the symbol.
|The text version
The symbolic version
|%,Ctl-^,2||%2||3.||Square last output.|
Mathematica's data restrictions are as follows:
- Integers can be of any size, up to your computer's memory.
- Real and complex operations are carried out with arbitrary (limitless) precision, up to your computer's memory, unless N is used.
- See Help->Help Browser: Numerical Computation->Numerical Precision->N, and section 1.4.9 of The Mathematica Book.
|If you want to use double precision, you must explicitly say so. See above.|
Mathematica is more than a calculator, of course. We will now try out some of Mathematica's Computer Algebra System (CAS) features.
|a||a||a||All names are symbols.|
|a,=,4||a=4||4||Defining a constant.|
|Esc,a,l,p,h,a,Esc,=,3||=3||3||Greek letters (see palettes).|
From this point onward, we will assume that you know how to enter keystrokes.
|p=x3+3x2+3x+1||x3+3x2+3x+1||p is now an alias for the expression.
This is not mathematical equality.
|Solve the equation p==0. Mathematica returns
a set of transformation rules.
The system has three identical solutions.
|p /. x->2||27||Substitute 2 for x (temporarily).|
|p==0 /. x->2||False||27 does not equal 0.|
|Transformation rules are like the subs command in Maple.|
|Go exploring in the Algebra Palette: