Вы находитесь на странице: 1из 1

2 июн 2013 09:58:41 - MaplePlot. Example of animation 1.

sm

R 4 R-radius of the large circle

r 1 r-radius of the small circle

N 180 N-number of frames of animation

R:=`::R`: # R-radius of the large circle


r:=`::r`: # r-radius of the small circle
N:=`::N`: # N-number of frames of animation

A:=plot([R*cos(t),R*sin(t),t=0..2*Pi],color=blue,thickness=2):

B:=seq(plottools[disk]([(R-r)*cos(2*Pi*k/N),(R-r)*sin(2*Pi*k/N)],r,
color=yellow),k=1..N):

C:=seq(plottools[disk]([(R-r)*cos(2*Pi*k/N)+r*cos(2*Pi*k/N-R*2*Pi*k/r/N),
(R-r)*sin(2*Pi*k/N)+r*sin(2*Pi*k/N-R*2*Pi*k/r/N)],r/15,color=red),k=1..N):

F:=seq(plot([(R-r)*cos(t)+r*cos(t-R*t/r),(R-r)*sin(t)+r*sin(t-R*t/r),
t=0..2*Pi*k/N],x=-R..R,y=-R..R,color=red,thickness=2),k=1..N):

for k from 1 to N do E[k]:=plots[display](A,C[k],B[k],F[k]); od:

plots[display]([seq(E[k],k=1..N)],insequence=true,scaling=constrained,
view=[-R-1..R+1,-R-1..R+1]);

start time 0

0
time 0 start 15.188 с

Вам также может понравиться