Question: B 1 Write a function powersarray ( b ) that takes a list ( or 1 - dimensional numpy array ) of length d representing

B1 Write a function powersarray (b) that takes a list (or 1-dimensional numpy array) of length d representing a row vector b0,dots,bd-1(for some d) and returns a numpy array representing the matrix ([b00,dots,bd-10],[vdots,vdots],[b0d-1,dots,bd-1d-1]).
B2 Write a function ApproxSolver1(a0, a1, b0, b1, m) that takes as input two entries a0, a1 representing the second order difference equation a0xn+a1xn+1+xn+2=0, and two more b0, b1 representing initial conditions (x0,x1)=(b0,b1), along with a value m, and outputs an integer which is an approximate value of xm by (assuming distinct roots of the auxiliary equation).
B3 Adjust your function to ApproxSolver2(a, b, m), which is as above, but accepts as inputs lists a,b of length len(a)=len(b)=d for any positive integer d, representing the degree of the equation (again assuming all distinct roots).
 B1 Write a function powersarray (b) that takes a list (or

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!