Question: Task 2. Scripts using NDArrays Here's a cure little result. It turns out you can calculate Fibonacci numbers using matrix multiplication. Suppose we want the

Task 2. Scripts using NDArrays Here's a cure little result. It turns out you can calculate Fibonacci numbers using matrix multiplication. Suppose we want the Nth Fibonacci Number, FN: N ( ) - ( )*() Task 2 Questions. 1. Write a few lines of Python, using NDArrays, Numpy, and matrix multiplication to calculate F30 (which we saw in Question 2). There's a cell below for this script. It's only a few lines of code! 2. In Question 2, we could calculate Fy for very large N, and it would be exact. Explain what happens if we try to do the same thing here. Answer by discussing what your script produces for large N, and then explain why it's wrong. Your answer here You don't have to use it! # Your answer to Task 2 Part 1 here # A little code to get you started. N = 30 f_N = 'not yet calculated' # Very Last step: display the output: print('The', N, 'th Fibonacci number is', f_N) The 30 th Fibonacci number is not yet calculated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
