summaryrefslogtreecommitdiff
path: root/1016/CH5/EX5.7
diff options
context:
space:
mode:
Diffstat (limited to '1016/CH5/EX5.7')
-rwxr-xr-x1016/CH5/EX5.7/ex5_7.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1016/CH5/EX5.7/ex5_7.sce b/1016/CH5/EX5.7/ex5_7.sce
new file mode 100755
index 000000000..ecd96c551
--- /dev/null
+++ b/1016/CH5/EX5.7/ex5_7.sce
@@ -0,0 +1,11 @@
+clc;clear;
+//Example 5.7
+
+//given values
+f=1*10^12;//frequency in Hz
+h=6.625*10^-34;//Plank's constant
+
+//calculation
+E=h*f;
+n=E/6.625;
+disp(n,'the no. of photons required') \ No newline at end of file