Expression 12: "o" Subscript, "f" "f" "s" "e" "t" "i" , Baseline left parenthesis, "p" , "s" , right parenthesis equals left brace, "s" equals "s" Subscript, "t" "i" "c" "k" , Baseline .length : left parenthesis, left parenthesis, left brace, "i" equals "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket : "p" left bracket, "i" , right bracket plus "o" , "i" equals "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket : "p" left bracket, "i" , right bracket minus "o" , "p" left bracket, "i" , right bracket , right brace with "o" equals StartFraction, left parenthesis, "d" Subscript, "i" "s" "t" "a" "n" "c" "e" , Baseline left bracket, "s" , right bracket minus StartAbsoluteValue, "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket , right bracket minus "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket , right bracket , EndAbsoluteValue , right parenthesis Over left parenthesis, left parenthesis, 2 minus "s" Subscript, "p" "r" "i" "n" "g" "f" "a" "c" "t" "o" "r" , Baseline , right parenthesis "d" Subscript, "i" "s" "t" "a" "n" "c" "e" , Baseline left bracket, "s" , right bracket , right parenthesis , EndFraction StartFraction, left parenthesis, "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket , right bracket minus "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket , right bracket , right parenthesis Over StartAbsoluteValue, "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket , right bracket minus "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket , right bracket , EndAbsoluteValue , EndFraction , right parenthesis for "i" equals left bracket, 1... "p" . , right bracket , right parenthesis , "o" Subscript, "f" "f" "s" "e" "t" "i" , Baseline left parenthesis, left parenthesis, left parenthesis, left brace, "i" equals "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket : "p" left bracket, "i" , right bracket plus "o" , "i" equals "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket : "p" left bracket, "i" , right bracket minus "o" , "p" left bracket, "i" , right bracket , right brace with "o" equals StartFraction, left parenthesis, "d" Subscript, "i" "s" "t" "a" "n" "c" "e" , Baseline left bracket, "s" , right bracket minus StartAbsoluteValue, "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket , right bracket minus "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket , right bracket , EndAbsoluteValue , right parenthesis Over left parenthesis, 2 minus "s" Subscript, "p" "r" "i" "n" "g" "f" "a" "c" "t" "o" "r" , Baseline , right parenthesis "d" Subscript, "i" "s" "t" "a" "n" "c" "e" , Baseline left bracket, "s" , right bracket , EndFraction StartFraction, left parenthesis, "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket , right bracket minus "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket , right bracket , right parenthesis Over StartAbsoluteValue, "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" left bracket, "s" , right bracket , right bracket minus "p" left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" left bracket, "s" , right bracket , right bracket , EndAbsoluteValue , EndFraction , right parenthesis for "i" equals left bracket, 1... "p" . , right bracket , right parenthesis , "s" plus 1 , right parenthesis , right braceoffsetip,s=s=stick.length:i=stick.xs:pi+o,i=stick.ys:pi−o,piwitho=distances−pstick.xs−pstick.ys2−springfactordistancespstick.xs−pstick.yspstick.xs−pstick.ysfori=1...p.length,offsetii=stick.xs:pi+o,i=stick.ys:pi−o,piwitho=distances−pstick.xs−pstick.ys2−springfactordistancespstick.xs−pstick.yspstick.xs−pstick.ysfori=1...p.length,s+1
12
Expression 13: polygon left parenthesis, "p" Subscript, "o" "s" , Baseline left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "x" , right bracket , "p" Subscript, "o" "s" , Baseline left bracket, "s" Subscript, "t" "i" "c" "k" , Baseline . "y" , right bracket , right parenthesis Has graph.polygonposstick.x,posstick.y
13
Expression 14: polygon left parenthesis, "p" Subscript, "o" "s" , Baseline , "p" Subscript, "o" "s" "b" "e" "f" , Baseline , right parenthesis Has graph.polygonpos,posbef
14
Hidden Label: "v" Subscript, "e" "l" , Baseline equals "f" Subscript, "r" "i" "c" "t" "i" "o" "n" , Baseline left parenthesis, "p" Subscript, "o" "s" , Baseline minus "p" Subscript, "o" "s" "b" "e" "f" , Baseline , right parenthesis equals a list of points. 4 itemsvel=frictionpos−posbef
Label
equals=
left parenthesis, negative 0.1 1 9 3 , 0.0 1 0 4 9 , right parenthesis−0.1193,0.01049
left parenthesis, negative 0.0 4 1 4 8 , 0.2 3 0 1 , right parenthesis−0.04148,0.2301
left parenthesis, negative 0.2 7 4 9 , 0.3 0 5 4 , right parenthesis−0.2749,0.3054
left parenthesis, negative 0.3 4 8 5 , 0.0 8 4 9 9 , right parenthesis−0.3485,0.08499
15
Hidden Label: "n" Subscript, "e" "w" "p" "o" "s" , Baseline equals "p" Subscript, "o" "s" , Baseline plus "v" Subscript, "e" "l" , Baseline equals a list of points. 4 itemsnewpos=pos+vel
Label
equals=
left parenthesis, negative 2.4 4 5 , negative 4.9 7 1 , right parenthesis−2.445,−4.971
left parenthesis, negative 0.4 3 8 , negative 5.2 9 3 , right parenthesis−0.438,−5.293
left parenthesis, negative 0.1 4 6 9 , negative 3.2 7 , right parenthesis−0.1469,−3.27
left parenthesis, negative 2.1 5 7 , negative 2.9 5 1 , right parenthesis−2.157,−2.951
16
Expression 17: polygon left parenthesis, "p" Subscript, "o" "s" , Baseline , "o" Subscript, "f" "f" "s" "e" "t" "i" , Baseline left parenthesis, "n" Subscript, "e" "w" "p" "o" "s" , Baseline plus "b" Subscript, "o" "u" "n" "c" "e" "d" "a" "m" "p" , Baseline "b" Subscript, "o" "u" "n" "c" "e" "p" "o" "s" , Baseline minus left parenthesis, 0 , "g" Subscript, "r" "a" "v" "i" "t" "y" , Baseline , right parenthesis , 1 , right parenthesis , right parenthesis Has graph.polygonpos,offsetinewpos+bouncedampbouncepos−0,gravity,1
17
Expression 18: "u" Subscript, "p" "d" "a" "t" "e" , Baseline equals "p" Subscript, "o" "s" , Baseline to "o" Subscript, "f" "f" "s" "e" "t" "i" , Baseline left parenthesis, "n" Subscript, "e" "w" "p" "o" "s" , Baseline plus "b" Subscript, "o" "u" "n" "c" "e" "d" "a" "m" "p" , Baseline "b" Subscript, "o" "u" "n" "c" "e" "p" "o" "s" , Baseline minus left parenthesis, 0 , "g" Subscript, "r" "a" "v" "i" "t" "y" , Baseline , right parenthesis , 1 , right parenthesis , "p" Subscript, "o" "s" "b" "e" "f" , Baseline to "p" Subscript, "o" "s" , Baseline plus "b" Subscript, "o" "u" "n" "c" "e" "d" "a" "m" "p" , Baseline "b" Subscript, "o" "u" "n" "c" "e" "p" "o" "s" "b" "e" "f" , Baselineupdate=pos→offsetinewpos+bouncedampbouncepos−0,gravity,1,posbef→pos+bouncedampbounceposbef
18
Hidden Label: "b" Subscript, "o" "u" "n" "c" "e" "p" "o" "s" , Baseline equals left parenthesis, left brace, StartAbsoluteValue, "n" Subscript, "e" "w" "p" "o" "s" , Baseline . "x" , EndAbsoluteValue greater than "w" Subscript, "i" "d" "t" "h" , Baseline : "m" Subscript, "o" "v" "e" "b" "a" "c" "k" , Baseline left parenthesis, "n" Subscript, "e" "w" "p" "o" "s" , Baseline . "x" , "w" Subscript, "i" "d" "t" "h" , Baseline , right parenthesis , 0 , right brace , left brace, StartAbsoluteValue, "n" Subscript, "e" "w" "p" "o" "s" , Baseline . "y" , EndAbsoluteValue greater than or equal to "h" Subscript, "e" "i" "g" "h" "t" , Baseline : "m" Subscript, "o" "v" "e" "b" "a" "c" "k" , Baseline left parenthesis, "n" Subscript, "e" "w" "p" "o" "s" , Baseline . "y" , "h" Subscript, "e" "i" "g" "h" "t" , Baseline , right parenthesis , 0 , right brace , right parenthesis equals a list of points. 4 itemsbouncepos=newpos.x>width:movebacknewpos.x,width,0,newpos.y≥height:movebacknewpos.y,height,0
Label
equals=
left parenthesis, 0 , 0 , right parenthesis0,0
left parenthesis, 0 , 0 , right parenthesis0,0
left parenthesis, 0 , 0 , right parenthesis0,0
left parenthesis, 0 , 0 , right parenthesis0,0
19
Hidden Label: "b" Subscript, "o" "u" "n" "c" "e" "p" "o" "s" "b" "e" "f" , Baseline equals left parenthesis, left brace, StartAbsoluteValue, "n" Subscript, "e" "w" "p" "o" "s" , Baseline . "x" , EndAbsoluteValue greater than or equal to "w" Subscript, "i" "d" "t" "h" , Baseline : "m" Subscript, "o" "v" "e" "b" "a" "c" "k" , Baseline left parenthesis, "p" Subscript, "o" "s" , Baseline . "x" , "w" Subscript, "i" "d" "t" "h" , Baseline , right parenthesis , 0 , right brace , left brace, StartAbsoluteValue, "n" Subscript, "e" "w" "p" "o" "s" , Baseline . "y" , EndAbsoluteValue greater than or equal to "h" Subscript, "e" "i" "g" "h" "t" , Baseline : "m" Subscript, "o" "v" "e" "b" "a" "c" "k" , Baseline left parenthesis, "p" Subscript, "o" "s" , Baseline . "y" , "h" Subscript, "e" "i" "g" "h" "t" , Baseline , right parenthesis , 0 , right brace , right parenthesis equals a list of points. 4 itemsbounceposbef=newpos.x≥width:movebackpos.x,width,0,newpos.y≥height:movebackpos.y,height,0
Label
equals=
left parenthesis, 0 , 0 , right parenthesis0,0
left parenthesis, 0 , 0 , right parenthesis0,0
left parenthesis, 0 , 0 , right parenthesis0,0
left parenthesis, 0 , 0 , right parenthesis0,0
20
Expression 21: "m" Subscript, "o" "v" "e" "b" "a" "c" "k" , Baseline left parenthesis, "x" , "l" , right parenthesis equals 2 left parenthesis, sign left parenthesis, "x" , right parenthesis "l" minus "x" , right parenthesismovebackx,l=2signxl−x