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 /1511/CH2/EX2.5/ex2_5.sce | |
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 '1511/CH2/EX2.5/ex2_5.sce')
-rwxr-xr-x | 1511/CH2/EX2.5/ex2_5.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1511/CH2/EX2.5/ex2_5.sce b/1511/CH2/EX2.5/ex2_5.sce new file mode 100755 index 000000000..1d3a55552 --- /dev/null +++ b/1511/CH2/EX2.5/ex2_5.sce @@ -0,0 +1,19 @@ +// Example 2.5 page no-48
+clear
+clc
+
+f=10*10^6 //Hz
+h=6.626*10^-34 //Joules/sec
+e=1.6*10^-19 //C
+//(a)
+E=h*f/e
+printf("\n(a)Energy of each radiated quantum,\n\tE=%.3f*10^-27 Joules/Quantum\n\tE=%.2f*10^-8 eV/Quantum",h*f*10^27,E*10^8)
+
+//(b)
+E=1000 //Joule/sec
+N=E/(h*f)
+printf("\n\n(b)\nTotal number of quanta per sec, N=%.2f*10^29",N/10^29)
+
+//(c)
+o=10^-7
+printf("\n\n(c)\nNumber of quanta emitted per cycle = %.2f*10^22 per cycle",o*N/10^22)
|