Introduction to MapleMaple is a very powerful Computer Algebra system that can do many of the calculations that you might encounter in many branches of mathematics, science and engineering. We'll look at some of its capabilities.We're looking at a Maple worksheet. Worksheets can have text, such as this, as well as Maple input and Maple output. Here is some Maple input (in red). 2+3*x^4;This input was in "Maple notation": there is also "2D Math notation" which looks like this:LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYtLUkjbW5HRiQ2JFEiMkYnLyUsbWF0aHZhcmlhbnRHUSdub3JtYWxGJy1JI21vR0YkNi1RIitGJ0YvLyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0Y4LyUpc3RyZXRjaHlHRjgvJSpzeW1tZXRyaWNHRjgvJShsYXJnZW9wR0Y4LyUubW92YWJsZWxpbWl0c0dGOC8lJ2FjY2VudEdGOC8lJ2xzcGFjZUdRLDAuMjIyMjIyMmVtRicvJSdyc3BhY2VHRkctRiw2JFEiM0YnRi8tRjM2LVExJkludmlzaWJsZVRpbWVzO0YnRi9GNkY5RjtGPUY/RkFGQy9GRlEmMC4wZW1GJy9GSUZRLUklbXN1cEdGJDYlLUkjbWlHRiQ2JVEieEYnLyUnaXRhbGljR1EldHJ1ZUYnL0YwUSdpdGFsaWNGJy1GLDYkUSI0RidGLy8lMXN1cGVyc2NyaXB0c2hpZnRHUSIwRictRjM2LVEifkYnRi9GNkY5RjtGPUY/RkFGQ0ZQRlItSShtc3Vic3VwR0YkNictRjM2LlErJkludGVncmFsO0YnLyUrYmFja2dyb3VuZEdRLlsyNTUsMjU1LDI1NV1GJ0YvL0Y3USZ1bnNldEYnL0Y6RlxwL0Y8RmZuL0Y+RlxwL0ZARmZuL0ZCRlxwL0ZERlxwRlBGUi1GIzYjLUYsNiRGXm9GLy1GIzYjRkpGXG8vJS9zdWJzY3JpcHRzaGlmdEdGXm8tRlQ2JS1GVzYmUSJ0RicvRmVuRjhGaG9GLy1GIzYjLUYsNiVGLkZob0YvRlxvLUYzNi5GYW9GaG9GL0Y2RjlGO0Y9Rj9GQUZDRlBGUi1GMzYuUTAmRGlmZmVyZW50aWFsRDtGJ0Zob0YvRltwRl1wL0Y8RlxwRl9wL0ZARlxwRmFwRmJwRlBGUi1GVzYlRl9xRlpGZ24=This may look nice but in my opinion is more trouble than it's worth. Unfortunately, the default is "2D Math notation". You can set the default to "Maple notation": in the menu bar on top click Tools, Options..., Display, set Input Display to "Maple notation", and then click "Apply globally". Maple has two modes: "Document Mode", which can be used to make fancy-looking documents, and "Worksheet Mode", which is what we'll use. So when you have a choice of Worksheet or Document, choose Worksheet. You can also make Worksheet the default format for new files under Tools, Options, Interface.When you click on a Maple input region and press Enter, Maple performs whatever command you gave it, prints whatever it will print, and goes on to the next region (or makes a new input region if there's no next one). You can also insert a new input region in the middle of your worksheet by clicking on [> on the tool bar.3+5;1+2;Note the ";" at the end of the command. After you press Enter, Maple computes and prints the result and gives you another prompt.2 + 4:This time I used ":" instead of ";". This tells Maple to compute the result, but not print it. Usually we'll use ";" since there's no reason not to see the result.Another difference between this and the last example is that I put in spaces on either side of the "+". These spaces are ignored by Maple, but they are often helpful because they improve readability for humans.2 + 3 * 4;The multiplication sign in Maple is the asterisk *. The division sign is /. For powers we use ^.Maple uses the standard algebraic precedence rules , so this is interpreted as 2+(3*4), not (2+3)*4. So Maple can act like a calculator.2^1000;That's something your calculator probably can't do. Maple can handle very large integers. The "\134" at the end of a line means that the number is continued to the next line.21/39;Maple writes fractions as fractions (automatically reducing them to lowest terms), without resorting to decimal approximations. If you do want to see this as a decimal, you can use the "evalf" command. As with almost every Maple command, the input to "evalf" is enclosed in parentheses.evalf(7/13);The default (what Maple does unless otherwise specified) is to use 10 significant digits. This can be changed, using a variable called "Digits". Let's see this number to 25 digits instead of 10.Digits := 25;evalf(7/13);Maple is case-sensitive. That doesn't mean you can hurt its feelings, it means "Digits" is not the same as "digits" or "DIGITS". Those wouldn't affect the number of digits Maple uses.":=" is the assignment sign in Maple. It means "assign the value on the right to the variable on the left". This is different from "=" which makes an equation.Once "Digits" has been set, Maple uses this setting every time it computes a decimal result until you change "Digits" again. If you want to change the number of digits for one "evalf" command only, you can specify this as a second input to "evalf". The inputs are separated by a comma.evalf(7/13, 40);Digits;Digits := 10:x^2 - 3*x - 4; The "x" here is a symbolic variable. Maple can do algebra as well as arithmetic. Note that the output looks like ordinary typeset mathematics, with exponents as superscripts and omitting the * for multiplication. Maple can do lots of symbolic calculations. For example, it knows this:sin(Pi/4);It doesn't have a symbolic value for the next one, so it just returns unevaluated:sin(Pi/31);Again, if you want a numerical value, you can get one with "evalf".evalf(sin(Pi/31));Maple can do almost any computational task that might arise in undergraduate mathematics. It doesn't do proofs, but it can be used to help with proofs by exploring what might or might not be true. See the worksheet courses.mw.Maple objects introduced in this lesson: ;
:
+
-
*
/
^
evalf
Digits
:= sin Pi