Maple V is a Computer Algebra System, meaning it has the ability to handle
mathematical objects like functions, graphs, equations, and more. Moreover,
it is capable of carrying out sophisticated operations on these objects,
like differentiating or integrating a function, solving equations, and so on.
1 GETTING STARTED.
To start Maple V, double-click on the Maple V icon on the Windwos desktop. Or, if you do not see such an icon, simply click Start, then select Programs, followed by Math, and click on Maple V Release 5. Note that when Maple starts up, it puts you in a window (your current Maple worksheet).
The MAPLE prompt is . This indicates that MAPLE is ready to work for you.
Commands end with ; (followed by the ``Enter'' key). i.e. that is how you tell MAPLE to go to work. One of the commonest mistakes for beginners is to forget the ;
Note: You may also end with : instead, BUT if you do, MAPLE will do the work but NOT show you the answer! (Sometimes this is useful for intermediate steps, but not often).
You define things by using := . Thus means that is defined to be and now, anytime you use , MAPLE will substitute for it. If, after using in some calculations you want to have as a variable again, i.e. you want to ``unassign'' it, then type x:= 'x'; . Another way to think of this := command, is that it assigns names (abbreviations) for long expressions that you don't wish to keep retyping.
Help is available. To get help either click on the help box on the tool bar at the top or type ? followed by the particular topic or command that you need help with.
To exit MAPLE you can type quit; .
The basic arithmetic operations are:
+ - * (for ) / (for ) and for exponent.
Try a few simple commands like:
> 10*25 + 30;
> 10 + 25*30;
> 2/7 + 3/13;
MAPLE can handle fractions. If we want to convert the answer to a decimal approximation, we use the evalf command:
If we want more precision, say 20 significant digits, we can use the Digits command:
> Digits := 20;
Reset Digits to its default value (10):
> Digits := 10;
Maple has a large number of built-in constants as well. The number , for example, is typed Pi.
There are some more sophisticated arithmetical commands:
! for factorial, ifactor(n) to factorize number (this is hard even for big machines - don't try numbers with more than 30 digits - if you do ask MAPLE to do something that takes too long, you can stop a calculation with the STOP button on the toolbar), and gcd(n, m) to find the greatest common factor (denominator) of and .
Try the following commands, or make up similar ones for yourself.
> f:= x3 - x2 - 14*x + 24;
> factor(f); (factorizes )
> subs(x = 5, f); (substitutes in ).
> solve(f = 0, x); (solves the equation for the variable ).
> solve(f = 1.2,x); (also solves but will now give a decimal solution).
> g:= (3*x + 2)4;
NB ALWAYS use * when multiplication is needed (as in the above polynomials). Another very common mistake for beginners is to forget a *.
NAME STUDENT #
Before you start these exercises type restart. This is in case you have already
assigned various things to various letters. This command ``unassigns'' everything.
In what follows is your student number (without the B and initial zeros),
is the last digit of , is the next last digit of , is the third
last, and is the fourth last.
Hint: Use the a:= command.
1. Fill in the answers (using MAPLE!!):
2. Now type > evalf(%);
and enter the result here ....
3. Type > ?% to find out what this command does. It is a very useful shortcut.
Now explain the answer you wrote in Question 2.
4. Factor .
5. Find the highest common factor of your birthday and today's date: 170100.
6. Define to be and define to be . Expand :
7. Try and solve the equation:
If this doesn't seem to work try:
> fsolve(g = d, x);
Look up fsolve under help and explain your last answers.