You are on page 1of 4

chap0.

html

1 of 4

http://zeta.math.utsa.edu/~mqr328/class/maple/pde/maple/chap01.html

Basic Review
0.1 Preparation for Maple V Worksheets
To begin, we introduce some of the basic operational procedures of the Maple V language as seen in the
worksheets. This brief introduction provides us with enough understanding of the code so as to make us
readily functional with setting up new worksheets to solve new problems. More insight into the finer details of
Maple V can be had from the many excellent texts dedicated to Maple V.
Much effort was put into using a minimal number of commands in the text. We avoided using procedures that
would not be familiar to people who have never used Maple V before. In most instances, we use generic
commands comparable to those seen in typical, traditional style textbooks. Our main purpose here is to learn
the mathematics and not to teach new code .
We do not use some of the all-inclusive Maple V commands, which almost do away with having to
understand the mathematics altogether. For example, in the solution to ordinary differential equations, Maple
V has a command "desolve" that practically solves the entire problem. Instead, we develop the solution in a
manner that is typical of that found in traditional style texts. It is our belief that in doing things this way, our
primary focus is on learning the mathematics and using the Maple V code only for computational ease.
The easiest way to learn the commands for these operations is to set up examples and visualize the resulting
Maple V output. In the following examples, we see how the Maple V command line is constructed. At the left
end of the command line is the "prompt" symbol > . In the middle of the line is the command equality
statement := , which is a colon followed by an equal sign. The command equality statement declares the
value of what is to the left of the statement as in typical algebra. The right end of the command line has either
a semicolon or a colon. When a colon is used, the line is not printed out, whereas with a semicolon, the line is
printed.
We now illustrate with examples. Observations of these examples provide enough learning experience to deal
with almost anything in the text. It should be remarked that all of the Maple V material was developed using
Release 4.
If we want to write out the function

>

[Maple as a Maple command, we write


Math]

f(x):=x^2:

Note that there is no printout of the preceding command because of the colon at the extreme right . To get
a printout, we replace the colon with a semicolon.
>

f(x):=x^2;
[Maple

Similarly, for

>

[Maple we write
Math]

g(x):=x^3;

12/04/34 05:13

chap0.html

2 of 4

http://zeta.math.utsa.edu/~mqr328/class/maple/pde/maple/chap01.html

[Maple
The sum of
>

and
[Maple
Math]

is
[Maple
Math]

f(x)+g(x);
[Maple

The product
>

f(x)*g(x);
[Maple

The quotient
>

f(x)/g(x);
[Maple
Math]

The derivative of
>

with respect to
[Maple
Math]

diff(f(x),x);
[Maple

The indefinite integral of


>

written symbolically
[Maple
Math]

Int(g(x),x);
[Maple
Math]

The evaluated indefinte integral of


>

[Maple
Math]

int(g(x),x);
[Maple
Math]

The definite integral of


>

over the finite closed interval


[Maple
Math]

written symbolically
[Maple
Math]

Int(f(x),x=1..4);

12/04/34 05:13

chap0.html

3 of 4

http://zeta.math.utsa.edu/~mqr328/class/maple/pde/maple/chap01.html

[Maple
Math]

The evaluated definite integral of


>

over the interval


[Maple
Math]

[Maple
Math]

int(f(x),x=1..4);
[Maple

Factorization
>

factor(x^2-x-2);
[Maple

Substitution
>

g(2):=subs(x=2,g(x));
[Maple

Summation
>

S:=Sum(n*x,n=1..3);
[Maple
Math]

>

S:=value(");
[Maple

We must be aware of two other items when using Maple V worksheets. When we want to declare new values
of variables in an entire problem, we wipe out all previous declarations of these values by using the simple
command
>

restart:

When we want to use special computational packages that facilitate the use of Maple V for specific
applications, we must bring these packages into the worksheet area by using a specific command. For
example, to implement the graphics capability of Maple V, we bring the "plot" package into the worksheet
area by using the command
>

with(plots):

Generally, the commands to bring in special packages are made at the very beginning of the Maple V
worksheet.
The preceding operations cover just about all of those in the text which utilize the Maple V code. Note the
minimal number of operations and the adherence to traditional style. Mastery of the above concepts, at the

12/04/34 05:13

chap0.html

4 of 4

http://zeta.math.utsa.edu/~mqr328/class/maple/pde/maple/chap01.html

very beginning, will set aside any problems we might have later with the code, allowing us to focus primarily
on the mathematics.

12/04/34 05:13