summaryrefslogtreecommitdiff
path: root/2288/CH1/EX1.21.1/ex1_21_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2288/CH1/EX1.21.1/ex1_21_1.sce')
-rwxr-xr-x2288/CH1/EX1.21.1/ex1_21_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2288/CH1/EX1.21.1/ex1_21_1.sce b/2288/CH1/EX1.21.1/ex1_21_1.sce
new file mode 100755
index 000000000..e40e8b6cf
--- /dev/null
+++ b/2288/CH1/EX1.21.1/ex1_21_1.sce
@@ -0,0 +1,13 @@
+// Exa 1.21.1
+clc;
+clear;
+close;
+// Given data
+d = 2.82;// in Å
+d = d * 10^-10;// in m
+n = 1;
+theta = 10;// in degree
+//Formula 2*d*sin(theta) = n*lembda;
+lembda = 2*d*sind(theta);// in m
+lembda = lembda * 10^10;// in Å
+disp(lembda,"The wavelength of X-ray in Å is ");