Modules for Differential
Calculus
Maple Tutor
Part 3: Variables
- Enter
x:=3;y:=2;
- Enter
2*x+y;
- The result of the preceding
step follows from the fact that the variable x has been assigned the value
3 and the variable y has been assigned the value 2. Check this by entering
x; y;
- Enter the following line.
Note that it ends with a colon rather than a semicolon.
z:=5:
Now, using a semicolon, enter
z;
Entering a line with a colon has the same long-term effect as entering
it with a semicolon, but nothing is displayed afterwards.
- Use pencil and paper to
decide what number xy2 + 3z represents, and then check your
answer by entering
x*y^2+3*z;
Use your mouse to return to the expression just entered, replace
the 3 by 4, and press RETURN.
- Suppose we want to remove
the identification of x with 3. Enter
x:='x';
Check this by entering
x;
Now remove the identifications of y with 2 and z with 5. Check
by entering x*y*z;
You should see xyz as the
output.
- Enter
2+3;
and then
%+5;
The percent sign has the value of the last quantity calculated.
Check this by entering
x*y;
and then
%+z;
Send comments to the
authors <modules at math.duke.edu>
Last modified: June 23,
1997