Question: It is not graded. Show work clearly and solve in paper or in course hero no python codes 1. Short Answer. SHOW ALL WORK (20

1. Short Answer. SHOW ALL WORK (20 points; 4 pts each except)(a) Use a Python command to create a matrix with 3 rowsand 4 columns that contain random numbers between-2 and 6. (b) Computethe value of "C" by hand >> alpha=2; A=np.array[[ 2, -1, 1],[4, -2, -1], [1, -1, 2]]; B = np.array[[3, 1], [2, -1]]>> C= alpha* A[0:1, 1:2] *np.transpose(B) (c) Define roundoff error and truncation

It is not graded. Show work clearly and solve in paper or in course hero no python codes

1. Short Answer. SHOW ALL WORK (20 points; 4 pts each except) (a) Use a Python command to create a matrix with 3 rows and 4 columns that contain random numbers between-2 and 6. (b) Compute the value of "C" by hand >> alpha=2; A=np.array[[ 2, -1, 1], [4, -2, -1], [1, -1, 2]]; B = np.array[[3, 1], [2, -1]] >> C= alpha* A[0:1, 1:2] *np.transpose(B) (c) Define roundoff error and truncation error and explain the difference between them (d) Consider the following equation for Z which is a function of X and Y: Z=4* sin(2*X) + 3* cos(2*Y) ^ ^ ^ ^ ^ ^ Make a 3D surface plot (plot_surface() command) that ranges from 0

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 Programming Questions!