Question: 2 . 1 Predict what will be displayed when the following Python mands are executed. Then try them. Explain how they work. Use h resources

2.1 Predict what will be displayed when the following Python mands are executed. Then try them. Explain how they work. Use h resources as needed.
import numpy as np
A=np matrix ('1,2,3;2,4,6;3,2,1'
pr(A)
At = A.transpose ()
print(At)
A1=A[:,2]
print(A1)
nm=np*??(np*diag(A))
print (nm)
Ad=np*delete(A,1,0)
print(Ad)
2.2 Create program statements in Python that compute a vector values based on the following formulas:
(a)y=6t3-3t-48sin(5t),0.1t0.25
(b)y=3t-24t-2t,1t5
where t is a vector of 10 values in the range prescribed. Create a
 2.1 Predict what will be displayed when the following Python mands

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!