summaryrefslogtreecommitdiff
path: root/3363/CH15/EX15.2/Ex15_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3363/CH15/EX15.2/Ex15_2.sce')
-rwxr-xr-x3363/CH15/EX15.2/Ex15_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3363/CH15/EX15.2/Ex15_2.sce b/3363/CH15/EX15.2/Ex15_2.sce
new file mode 100755
index 000000000..6f2db7853
--- /dev/null
+++ b/3363/CH15/EX15.2/Ex15_2.sce
@@ -0,0 +1,11 @@
+//Example 15.2, Page 533
+clc;
+c=3*10^8//m/s
+k=500//Mev
+p=(k)/(c*6.2*10^12)
+h=6.63*10^-34//in j-s
+lambda=h/p
+angle=0.53//in rad
+r=lambda/angle
+printf("\n The wavelength is %e m",lambda)
+printf("\n The angle is %e m",r)