Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago