diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /623/CH2/EX2.1.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '623/CH2/EX2.1.2')
-rwxr-xr-x | 623/CH2/EX2.1.2/U2_C1_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/623/CH2/EX2.1.2/U2_C1_2.sce b/623/CH2/EX2.1.2/U2_C1_2.sce new file mode 100755 index 000000000..20677a479 --- /dev/null +++ b/623/CH2/EX2.1.2/U2_C1_2.sce @@ -0,0 +1,16 @@ +//variable initialization
+v=2*10^-2; //side of the cube (meter)
+lembda=5000*10^-10; //wavelength (meter)
+delta_lembda=10*10^-10; //range of wavelength (meter)
+k=1.38*10^-23; //Boltzmann constant (joule/kelvin)
+T=1500 //Temperature of the cavity (kelvin)
+
+//(i)Number of modes:
+N=(8*%pi*v^3*delta_lembda)/lembda^4; //number of modes
+
+//(ii)Total radiant energy in the cavity:
+U=N*k*T; //energy density (joule)
+
+printf("\n(a) Number of modes = %.3e\n(b) Energy density = %.2e joule",N,U);
+
+//Note: In book the answers of both the parts are wrong by one order of magnitude
|