summaryrefslogtreecommitdiff
path: root/1397/CH6/EX6.13/6_13.sce
blob: 7ae4989d6dfac15052ad3b10665fb2db443c75db (plain)
1
2
3
4
5
6
7
8
9
10
11
//clc();
clear;
//To calculate miller indices of reflecting planes
lambda=0.82;       //wavelength in Angstrom
theta=75.86;              //glancing angle in degrees
n=1;        //diffraction order
a=3;        //lattice constant in Angstrom
d=(n*lambda)/(2*sind(theta));
disp(d);
//but d!=a
//answer in book is wrong