summaryrefslogtreecommitdiff
path: root/1694/CH1/EX1.27/EX1_27.sce
blob: 4e5c561a07f0eb4b49a215cd734864a081709758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear;
clc;
printf("\nEx1.27\n");
//page no.-36
//given
n=1;.....................//order
lambda=0.82*10^-10;......//wavelength in m
a=3*10^-10;.............//lattice constant
theta=75.86;............//angle in degrees
//from bragg's law

d=(n*lambda)/(2*sind(theta))........//interplanar spacing in m

//by formula, sqrt(h^2+k^2+l^2)=a/d...miller indices can be found

printf("\nmiller indices are (001),(010),(100)\n");