summaryrefslogtreecommitdiff
path: root/1397/CH6/EX6.9/6_9.sce
blob: 4757fbe66631130fefd02e10c281040e7726f8e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//clc();
clear;
//To calculate the wavelength of X-rays and maximum order of diffraction
d=0.282*10^-9;          //lattice spacing in m
theta1=8.58333;     //glancing angle in degrees
n1=1;
lambda=(2*d*sind(theta1))/n1;
printf("wavelength in Armstrong is ");
disp(lambda);
theta=90;          //bragg's angle for maximum order of diffraction
n=(2*d*sind(theta))/lambda;
printf("maximum order of diffraction possible is ");
disp(n);