a) the code is: import numpy as np import matplotlib.pyplot as plt R=8.314 T=300 N=1 Va=1 Vb=2*Va g=5/3 Pa=N*R*T/Va Pb=Pa*(Va**g)/(Vb**g) l=np.arange(0,1,0.001) P1=l*Pb+(1-l)*Pa V1=l*Vb+(1-l)*Va V2=np.zeros(1000) P2=np.zeros(1000) for i in range (0,len(V2)): V2[i]=Vb-i/1000 P2[i]=Pa*(Va**g)/(V2[i]**g) c=P1[500]*(V1[500])**g V3=np.zeros(1000) P3=np.zeros(1000) for i in range (0,len(V2)): V3[i]=Vb-i/1000 P3[i]=c/(V3[i]**g) plt.plot(V1,P1) plt.plot(V2,P2) plt.plot(V3,P3) plt.plot(V1[500],P1[500],"o") plt.show() and the plot is: pd: i'm sorry i don't know how to pass some latex to html so i put it like images
Miguel this is a bit late, since you didn't post anything I left the problem to somebody else. Please upload your solution earlier next time (Tarea 7)
ResponderBorrar