diff options
Diffstat (limited to '3648/CH25/EX25.7/Ex25_7.sce')
-rw-r--r-- | 3648/CH25/EX25.7/Ex25_7.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/3648/CH25/EX25.7/Ex25_7.sce b/3648/CH25/EX25.7/Ex25_7.sce new file mode 100644 index 000000000..7eafa9237 --- /dev/null +++ b/3648/CH25/EX25.7/Ex25_7.sce @@ -0,0 +1,10 @@ +//Example 25_7
+clc();
+clear;
+//To find the energy of the photon in a beam
+h=6.626*10^-34 //units in J
+c=3*10^8 //units in meters/sec
+lamda=1240*10^-9 //units in meters
+e=(h*c)/lamda //units in J
+e=e/(1.6*10^-19) //Units in eV
+printf("The energy of photon is E=%d eV",e)
|