Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
#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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started