Plot Planck’s law for Black Body radiation and compare it with Raleigh-Jeans Law at high temperature and low temperature -Scilab
experiment - 3 // Define frequency ranges and constants
omega = [0.1:0.1:10];
omegar = [0.1:0.1:2];
A = 1.0;
B = 1.0;
Temp = 1.0;
// Calculate energy density using Planck's law and Raleigh-Jeans law
enr = A * omega.^3 ./ (exp(B*omega/Temp) - 1);
rj = A * omegar.^2;
// Plot the two functions
clf();
plot2d(omega, enr, style = 1);
plot2d(omegar, rj, style = 4);
xgrid();
xlabel("$\omega$", "fontsize", 5, "color", black);
ylabel("$u(\omega, T)$", "fontsize", 5);
Comments
Post a Comment