summaryrefslogtreecommitdiff
path: root/1694/CH1/EX1.25/EX1_25.sce
blob: 84f9f311ae92be74acb48d71a2a792d84e0746da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear;
clc;
printf("\nEx1.25\n");
//page no.-35
//given
lambda=0.071*10^-9;.........//wavelength in m
h=1;
k=1;
l=0;
a=0.28*10^-9;........//lattice constant in m
n=2;.................//order

d=a/sqrt(h^2+k^2+l^2);..........//interplanar spacingin m
//by bragg's law

theta=asind((n*lambda)/(2*d)).......//angle in degrees

printf("\nangle is 21.01 degrees\n");