summaryrefslogtreecommitdiff
path: root/1427/CH19/EX19.6/19_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH19/EX19.6/19_6.sce')
-rw-r--r--1427/CH19/EX19.6/19_6.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1427/CH19/EX19.6/19_6.sce b/1427/CH19/EX19.6/19_6.sce
new file mode 100644
index 000000000..e017c6f4c
--- /dev/null
+++ b/1427/CH19/EX19.6/19_6.sce
@@ -0,0 +1,8 @@
+//ques-19.6
+//Determining number of photons of light required
+clc
+w=400;//wavelength (in nm)
+E1=1;//energy required (in J)
+E=(6.63*10^-34*3*10^8)/(w*10^-9);//energy of 1 photon (in J)
+n=E1/E;
+printf("The number of photons of light are %.2f*10^18.",n*10^-18);