0% found this document useful (0 votes)
23 views3 pages

Problem 0. A Trajectory of The Sphere With The Radius R 1 Is Defined by A 3D Parametric Curve

The document describes animating the movement of a sphere along a 3D trajectory. The trajectory is defined by a parametric curve with equations x(t)=t^2, y(t)=t, z(t)=cos(t) for 0≤t≤1. The sphere is defined by parametric equations x(u,v)=Rcos(u)cos(v), y(u,v)=Rsin(u)cos(v), z(u,v)=sin(v) for its radius R=1. The animation increments the trajectory parameter t from 0 to 1 in steps of 0.1, showing the sphere moving along the trajectory over time.

Uploaded by

TheOutCast
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Problem 0. A Trajectory of The Sphere With The Radius R 1 Is Defined by A 3D Parametric Curve

The document describes animating the movement of a sphere along a 3D trajectory. The trajectory is defined by a parametric curve with equations x(t)=t^2, y(t)=t, z(t)=cos(t) for 0≤t≤1. The sphere is defined by parametric equations x(u,v)=Rcos(u)cos(v), y(u,v)=Rsin(u)cos(v), z(u,v)=sin(v) for its radius R=1. The animation increments the trajectory parameter t from 0 to 1 in steps of 0.1, showing the sphere moving along the trajectory over time.

Uploaded by

TheOutCast
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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]=

You might also like