Annnd I need to constantly track aim? ugh. brainstorming time.
18
Expression 19: "a" left parenthesis, "x" , right parenthesis equals Start sum from "n" equals 1 to "x" , end sum, "o" left bracket, "n" , right bracket "k" left bracket, "n" , right bracketax=x∑n=1onkn
19
Ok cool. I got the aim at any give time. Knowing this, I need to know when I'm going forward, and how far
20
Expression 21: "g" left parenthesis, "x" , right parenthesis equals left brace, "o" left bracket, "x" , right bracket equals 0 : "k" left bracket, "x" , right bracket , 0 , right bracegx=ox=0:kx,0
21
Awesome. At any given point I know what my aim is and how far forward I'm going. Now I need to track my change in depth at any given time
22
Expression 23: "d" Subscript, "c" "h" "a" "n" "g" "e" , Baseline equals left bracket, "a" left parenthesis, "i" , right parenthesis "g" left parenthesis, "i" , right parenthesis for "i" equals left bracket, 1...1 0 0 0 , right bracket , right bracketdchange=aigifori=1...1000
equals=
00
00
4040
00
6666
00
00
2222
00
00
264264
00
00
280280
00
1000 element list
23
therefore, here's the final depth
24
Expression 25: "d" Subscript, "f" 2 , Baseline equals total left parenthesis, "d" Subscript, "c" "h" "a" "n" "g" "e" , Baseline , right parenthesisdf2=totaldchange
equals=
757618757618
25
Final distance along the x axis
26
Expression 27: "x" Subscript, "f" 2 , Baseline equals Start sum from "n" equals 1 to 1000, end sum, "g" left parenthesis, "n" , right parenthesisxf2=1000∑n=1gn
equals=
21052105
27
Answer for part 2 (final depth times total distance forward)