Search for question
Question

1. 2. 3. Import and plot or .jpeg format. (20 pts.) federal_funds_rate.xlsx since 1955. Also save a plot in either .png Use a single fimplicit function to plot the following hyperbolars in one plot. (30 pts.) y²-x²=c_for c = -4,-2, 0, 2, 4 The command spiral(3) generates the following number spiral matrix 7 8 9 S36 1 2 5 4 3 where it starts with the number 1 at the center of the matrix and counts up by spiraling around the center. (a) Write a program that makes a 2-D plot binary that differentiates the prime numbers from the non-prime numbers in this matrix for a relatively large spiral matrix, say n > 250. (20 pts.) (b) What percentage of the values in the matrix are prime numbers? (5 pts.) (c) In the same plot window, make a second plot of a 2-D matrix of randomly distributed ones and zeros that has the same percentage of ones as the first matrix. (20 pts.) (d) Comment on the differences you see in these plots (5 pts.)

Fig: 1