summaryrefslogtreecommitdiff
path: root/446/CH3/EX3.1/3_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '446/CH3/EX3.1/3_1.sce')
-rwxr-xr-x446/CH3/EX3.1/3_1.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/446/CH3/EX3.1/3_1.sce b/446/CH3/EX3.1/3_1.sce
new file mode 100755
index 000000000..5e4c3afe5
--- /dev/null
+++ b/446/CH3/EX3.1/3_1.sce
@@ -0,0 +1,6 @@
+clear
+clc
+disp('Exa-3.1');
+w=0.250; theta=26.3;n=1 // n=1 for hydrogen atom and rest all are given values
+d=n*w/(2*sind(theta)); // bragg's law
+printf('Hence the atomic spacing is %.3f nm.',d); \ No newline at end of file