Professional Documents
Culture Documents
hw1 Ps
hw1 Ps
1
5. Read and pra
ti
e yourMaple tutorial. Then try the following
ommands of Maple and
explain what's wrong with them (read and pra
ti
e the rst tutorial!) Corre
t them
and write down the answers you get.
(a) tan(pi/4);
(b) Evalf(Pi);
(
) plot(sin(a*t),t=0..2*Pi);
6. For graduates (bonus for undergraduates)
Show that:
X
3
and (b) above. Sin
e a gradient fun
tion is a ve
tor fun
tion, it asso
iates a ve
tor to ea
h
point in spa
e. A gradient plot will pi
k a sample of points in the region of spa
e you want
and draw an arrow for ea
h of them, dire
ted as and proportional to the ve
tor fun
tion in
that point.
I suggest you use the following options to get readable plots:
(i) For the D=2
ase:
gradplot((x2 + y 2 )(1=2) ; x = 1::1; y = 1::1; grid = [10; 10℄);
(i) For the D=3
ase:
gradplot3d((x2 + y 2 + z 2 )(1=2) ; x = 1::1; y = 1::1; z = 1::1; grid = [5; 5; 5℄);
Note that the ranges for (x; y; z )
an be
hanged as you like. If you then
li
k on your plot,
more optional
ommands will appear in the top bar of your window. Use them to move the
oordinate axes as you like.
Print out your result and explain what do you understand from these plots. Do you see any
dieren
e between them? For instan
e:
i) Are the arrows dire
ted the same way in
ase (a) and (b)? Why?
ii) Are the length of the arrows always the same in ea
h plot? If yes, why? If no, why?