運算式 19: "X" equals Start integral from 0 to "s" , end integral, cosine left parenthesis, "a" times cos left parenthesis, "b" times "t" plus "a" Subscript, "n" "i" "m" , Baseline , right parenthesis plus "c" times "t" , right parenthesis "d" "t"X=∫s0cosa·cosb·t+anim+c·tdt
19
運算式 20: "Y" equals Start integral from 0 to "s" , end integral, sine left parenthesis, "a" times cos left parenthesis, "b" times "t" plus "a" Subscript, "n" "i" "m" , Baseline , right parenthesis plus "c" times "t" , right parenthesis "d" "t"Y=∫s0sina·cosb·t+anim+c·tdt
20
define list [start, step, ..., end]
21
運算式 22: "s" equals left bracket, 0 , 1 , ... , "n" minus 1 , right brackets=0,1,...,n−1
22
Draw
對學生隱藏此資料夾。
23
calculate center of mass
24
運算式 25: "O" equals left parenthesis, mean left parenthesis, "X" , right parenthesis , mean left parenthesis, "Y" , right parenthesis , right parenthesisO=meanX,meanY
25
Move snake to middle of graph
26
運算式 27: left parenthesis, "X" , "Y" , right parenthesis minus 0 "O"X,Y−0O
27
運算式 28: "y" equals negative 5 left brace, 1 less than "x" less than 2 , right bracey=−51<x<2
28
運算式 29: "y" equals negative 5.2 5 left brace, 1 less than "x" less than 2 , right bracey=−5.251<x<2
29
運算式 30: "y" equals negative 5.5 left brace, 1 less than "x" less than 2 , right bracey=−5.51<x<2
30
運算式 31: "y" equals negative 5.7 5 left brace, 1 less than "x" less than 2 , right bracey=−5.751<x<2
31
運算式 32: "y" equals negative 6 left brace, 1 less than "x" less than 2 , right bracey=−61<x<2
32
運算式 33: left parenthesis, 2.5 , negative 5 , right parenthesis2.5,−5
33
運算式 34: left parenthesis, 2.5 , negative 5.2 5 , right parenthesis2.5,−5.25
34
運算式 35: left parenthesis, 2.5 , negative 5.5 , right parenthesis2.5,−5.5
35
運算式 36: left parenthesis, 2.5 , negative 5.7 5 , right parenthesis2.5,−5.75
36
運算式 37: left parenthesis, 2.5 , negative 6 , right parenthesis2.5,−6
37
Legenda: Čierna: f = 2*π/8, Zelená: f = 2*π /4, Oranžová: f = 2*π /19, Modrá: f = 2*π/9