Unformatted text preview: x(t)=t*sin(t) and y(t)=5log(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 while loop that computes the sum of the first 502 prime numbers. You cannot use the sum or primes functions in your solution. However, you may certainly use isprime . Computer Question 4: Write a function called biggestdifference that takes as input a matrix, and returns the value of the largest difference between any two adjacent elements (i.e. elements that are next to each other vertically or horizontally.) This is the last problem from Problem Set 2, except you don’t need to specify the location of these elements; just return the value of the largest difference. Your solution must use a nested loop rather than matrix operations. In particular, you cannot use max , sort, or similar functions....
View
Full Document
 Fall '09
 blase
 Prime number, $0.99, $0.00, $1.99, $0.79

Click to edit the document details