summaryrefslogtreecommitdiff
path: root/3875/CH11/EX11.12/11_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '3875/CH11/EX11.12/11_12.sce')
-rw-r--r--3875/CH11/EX11.12/11_12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3875/CH11/EX11.12/11_12.sce b/3875/CH11/EX11.12/11_12.sce
new file mode 100644
index 000000000..14e931020
--- /dev/null
+++ b/3875/CH11/EX11.12/11_12.sce
@@ -0,0 +1,15 @@
+clc;
+clear;
+a=0.2 //lattice parameter in nm
+h=1 //x intercept of parallel plane
+k=1 //y intercept of parallel plane
+l=1 //z intercept of parallel plane
+phi=87 //incident angle in degree
+
+//calculation
+tetha=phi/2
+d=(a/sqrt(h^2+k^2+l^2))
+lambda=(2*d*sind(tetha))
+
+mprintf("The wavelength is = %1.3f nm\n",lambda)
+mprintf("The Braggs angle is = %2.1f degree",tetha)