Sei sulla pagina 1di 3

Problem 0.

A trajectory of the sphere with the radius R=1 is defined by a 3D parametric curve
given by
x (t ) t

2
y (t ) t
z (t ) cos(t )

0 t 1 .

Animate the movement of the sphere along the above trajectory with the animation increment
0.1. The parametric equations of the sphere with the radius R are given by
x(u , v) R cos(u )cos(v)

y (u, v) R sin(u ) cos(v)


z (u , v) sin(u )

0 u 2

Use ParametricPlot3D, Animate. Apply


20 points
Illustration:

Page 1

In[194]:=

S[u_, v_] := {1 * Cos[u] * Cos[v], 1 * Cos[v] * Sin[u], Sin[v]}

In[180]:=

CC[t_] := {t, t^2, Cos[t]}

In[193]:=

PCC = ParametricPlot3D[CC[t], {t, 0, 1},


BoxRatios 1, PlotRange {{-1, 4}, {-1, 4}, {- 1, 4}}]
0

4
Out[193]=

2
0
0

In[187]:=

SC[u_, v_, t_] := S[u, v] + CC[t]


PlotSC[t_] := ParametricPlot3D[SC[u, v, t], {u, 0, 2 Pi}, {v, -Pi / 2, Pi / 2}]
ShowP[t_] := Show[PCC, PlotSC[t]]

In[192]:=

Animate[ShowP[t], {t, 0, 1}]


t

Out[192]=

Potrebbero piacerti anche