diff options
Diffstat (limited to '1271/CH13/EX13.14/example13_14.sce')
-rwxr-xr-x | 1271/CH13/EX13.14/example13_14.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1271/CH13/EX13.14/example13_14.sce b/1271/CH13/EX13.14/example13_14.sce new file mode 100755 index 000000000..ef966441d --- /dev/null +++ b/1271/CH13/EX13.14/example13_14.sce @@ -0,0 +1,14 @@ +clc +// Given that +d = 2.51 // the space between adjacent plane in angstrom +theta = 9 // glancing angle in degree +// Sample Problem 14 on page no. 13.29 +printf("\n # PROBLEM 14 # \n") +printf(" Standard formula used \n") +printf(" n*lambda = 2 * d * sin(theta) \n") +n = 1 // for n=1 +lambda = 2 * d * sind(theta) / n +n = 2 // for n=2 +theta = asind(lambda / d) +printf("\n Wavelength of x-ray is %f angstrom.\n Glancing angle for second order diffraction is %f degree.",lambda,theta) + |