Guest User

Untitled

a guest
Feb 22nd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. syms p T nH alpha2 density_part_integral density_photons_T density_photons_total
  2.  
  3. p=(1-nH/density_photons_total)*(density_photons_T/density_photons_total)
  4.  
  5. h=6.626*10^(-34);
  6. kb=1.3806*10^(-23);
  7. c=3*10^8;
  8. V=10^(-6);
  9.  
  10. alpha2=8*pi*V*(kb*T/(h*c))^3;
  11. fdensityT=x^2/(exp(x)-1);
  12. fnumT=matlabFunction(fdensityT);
  13. density_part_integral=integral(fnumT,0,13.6);
  14. density_photons_T=alpha*density_part_integral;
  15. density_photons_total=alpha*2*zeta(3);
  16.  
  17. solve(p==(1-nH/density_photons_total)*(density_photons_T/density_photons_total),T);
Add Comment
Please, Sign In to add comment