summaryrefslogtreecommitdiff
path: root/3363/CH10/EX10.1/Ex10_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3363/CH10/EX10.1/Ex10_1.sce')
-rwxr-xr-x3363/CH10/EX10.1/Ex10_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3363/CH10/EX10.1/Ex10_1.sce b/3363/CH10/EX10.1/Ex10_1.sce
new file mode 100755
index 000000000..24ef24b91
--- /dev/null
+++ b/3363/CH10/EX10.1/Ex10_1.sce
@@ -0,0 +1,16 @@
+//Example 10.1, page 370
+clc
+E3p=-3//in ev
+E3s=-5.1//in ev
+E=E3p-E3s
+E_Joule=E*1.6*10^-19//in Joule
+h=6.6*10^-34//in J-s
+c=3*10^8//in m/s
+disp('Part a')
+lambda=(h*c)/E_Joule
+printf("\n The wavelength is %e m",lambda)
+//Part b
+disp('Part b')
+d_lambda=(h*c*E_Joule)/(E_Joule)^2
+printf("\n The magnitude of seperation is %e m",d_lambda)
+//Answer given in book for part b is wrong \ No newline at end of file