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
Profesor, no entiendo que es lo que tenemos que hacer, ya que en el microcanonico usamos la energía y en el macrocanonico usamos la temperatura, cómo lo comparamos?
ResponderBorrarEn ambos casos obtienes una relación entre energía y temperatura. Esta relación debe ser la misma
ResponderBorrarGood afternoon Dr.Gorin
ResponderBorrarI have a question, in the T05.3 a)
Do you want us to calculate the probability for an especific spin chain, or to calculate the probability for one single spin to be one?
In the second case we can consider as conditional probability?
In (a) you should calculate the probability for one single spin.
BorrarIn (b) you should realize that the spin states are statistically independent among each others. So one can generate a random configuration of N spins choosing each spin state at random independent of all others. The idea is, generate a large sample of random configurations and calculate the required quantities for that sample.
Thanks for the answer, but I think I didn't understand it well.
BorrarIn (a) we have to calculate the probability for a single spin chain? or, we have to calculate the probability for a spin in a N-spin chain?
For a single spin in the chain!
BorrarGood morning. Excuse me, should we send the homework by e-mail?
ResponderBorrarJosé Luis has sent you a link to upload your homework. Here, it is again:
Borrarhttps://drive.google.com/drive/folders/1zyNpoTXpVp8I2hqmw3wEd9SbnSkJmXX-?usp=sharing