Appendix
A-2: Arithmetic Calculations
Example A-2.2
Evaluate 2+42 3−1.
Solution
Interactive Solution
In math mode, type in the expression. (Exponents: See Table A-1.2.)
Context Panel: Evaluate and Display Inline
2+42 3−1 = 72
2+42⋅3−1 = 72
In the first version, the two factors are multiplied implicitly, with a space; in the second, explicitly, with the multiplication symbol being represented by a centered dot. (In math mode, the asterisk (*) used for explicit multiplication appears as the centered dot.) Failure to include some form of multiplication between the factors would cause Maple to treat the expression as the evaluation of the constant function fx=36, where x=3−1=2.
Coded Solution
The solution is identical to the Interactive Solution, except you must press Enter to evaluate.
Type the expression in Math mode. Press the Enter key.
2+42 3−1
72
2+42⋅3−1
Type the expression in Text mode. Press the Enter key.
(2+4)^2*(3-1);
Note that text-mode entry is "linear" and one-dimensional. For this reason, Maple calls such notation "1-D math". Text-mode entry requires terminal punctuation, and is often harder to read than math-mode entry. Since Maple commands can be entered in either math or text form, this Study Guide will typically default to math-mode entry for any coded solution.
<< Previous Example Section A-2 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document