summaryrefslogtreecommitdiff
path: root/1397/CH6/EX6.18
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1397/CH6/EX6.18
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1397/CH6/EX6.18')
-rwxr-xr-x1397/CH6/EX6.18/6_18.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1397/CH6/EX6.18/6_18.sce b/1397/CH6/EX6.18/6_18.sce
new file mode 100755
index 000000000..bf63a5e69
--- /dev/null
+++ b/1397/CH6/EX6.18/6_18.sce
@@ -0,0 +1,18 @@
+//clc();
+clear;
+//To calculate braggs angle for first order of reflection
+V=5000; //potential difference in V
+n=1;
+h=1;
+k=1;
+l=1;
+d=0.204*10^-9; //inter planar spacing in m
+H=6.625*10^-34; //plancks constant in J
+m=9.1*10^-31;
+e=1.6*10^-19;
+lambda=H/(sqrt(2*m*e*V));
+disp(lambda);
+a=(n*lambda)/(2*d);
+theta=asind(a);
+printf("bragg angle in degrees is");
+disp(theta);