Question: What is wrong with this code? import matplotlib.pyplot as plt import numpy as np P0=310000 T=[25, 43, 57, 21, 32, 43, 50] P=np.zeros(7) M=np.zeros(7) for

What is wrong with this code?

import matplotlib.pyplot as plt import numpy as np P0=310000 T=[25, 43, 57, 21, 32, 43, 50] P=np.zeros(7) M=np.zeros(7) for i in range(len(T)): T[i]=T[i]+273.16 P[i]=(T[i]/T[0])*P0 M[i]=(P[i]*0.025)/(287*T[i]) print(M)

I get [0.09056709 0.09056709 0.09056709 0.09056709 0.09056709 0.09056709 0.09056709] , but M should be different values right?

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!