Unformatted text preview: Write code that animates the following equation, leaving a trail behind it. Let t run from 0.1 to 50: x(t)=5log(t) and y(t)=t*sin(t) Use appropriate axes, and make sure that the animation works when you run it. Here are two screen shots of the “middle” and the “end” of the animation: Computer Question 3: Write a loop to create the following matrix: 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120 124 128 132 136 140 144 148 152 156 160 164 168 172 176 180 184 188 192 196 200 204 208 212 216 220 224 Computer Question 4: Recall that the Fibonacci sequence is defined as, Write a loop that calculates the sum of the first 9 prime Fibonacci numbers . (i.e. You may not use the sum or primes functions. However, you may certainly use isprime ....
View
Full Document
 Fall '09
 blase
 Harshad number, $2.50, $0.00, White Castle, $0.69, prime Fibonacci numbers

Click to edit the document details