Question: Python HW #5,6,7 Problem 5. (10 pts) Choose your own a and b, then plot the functions y=x + ax + b y = ax

Python HW Python HW #5,6,7 Problem 5. (10 pts) Choose your own a and
#5,6,7

Problem 5. (10 pts) Choose your own a and b, then plot the functions y=x + ax + b y = ax + b y=al.c + b in one figure with the same range for r. Make sure that they have different colors, line styles and markers so that they can be distinguished. Set line width to be 3, add legends, title and labels for x and y axes. Hint: use matplotlib.pyplot package. Problem 6. (15 pts) Consider the following matrices and vector: 10 25 1 8 157 [2 6 23 4 71 20 5 7 14 16 14 15 9 15 23 A= 4 6 13 20 22.B = 12 14 21 29 8 ,2 = 10 12 19 21 3 23 20 20 11 16 (11 18 25 29 24 22 5 18 21 Use numpy package to calculate (a) A+B (b) AB (c) AT (d) A-1 (e) A (f) rank(A), rank(B) Problem 7. (10 pts) Use numpy package to solve a system of linear equa- tions: 3x1 + 2x2 + 6.63 = 26 2.C1 - 3.02 + 5x3 = 18 5x1 + O2 + 4.13 = 11

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!