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 /884/CH7/EX7.3 | |
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 '884/CH7/EX7.3')
-rwxr-xr-x | 884/CH7/EX7.3/Example7_3.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/884/CH7/EX7.3/Example7_3.sce b/884/CH7/EX7.3/Example7_3.sce new file mode 100755 index 000000000..d3319c4da --- /dev/null +++ b/884/CH7/EX7.3/Example7_3.sce @@ -0,0 +1,22 @@ +//calculation of energy of a photon
+
+clear;
+clc;
+
+printf("\t Example 7.3\n");
+
+c=3*10^8;//speed of light in vacuum, m/s
+h=6.63*10^-34;//planck's constant, J s
+//(a)
+lambda=5*10^-5;//wavelength, m
+E=h*c/lambda;//energy, J
+
+printf("\t (a) the energy of the photon is : %4.2f *10^-21 J\n",E*10^21);
+
+//(b)
+lambda=5*10^-11;//wavelength, m
+E=h*c/lambda;//energy, J
+
+printf("\t (b) the energy of the photon is : %4.2f *10^-15 J\n",E*10^15);
+
+//End
|