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
Get step-by-step solutions from verified subject matter experts
