summaryrefslogtreecommitdiff
path: root/3648/CH25/EX25.7
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH25/EX25.7')
-rw-r--r--3648/CH25/EX25.7/Ex25_7.sce10
-rw-r--r--3648/CH25/EX25.7/Ex25_7.txt1
2 files changed, 11 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)
diff --git a/3648/CH25/EX25.7/Ex25_7.txt b/3648/CH25/EX25.7/Ex25_7.txt
new file mode 100644
index 000000000..b74ba65e5
--- /dev/null
+++ b/3648/CH25/EX25.7/Ex25_7.txt
@@ -0,0 +1 @@
+The energy of photon is E=1 eV \ No newline at end of file