summaryrefslogtreecommitdiff
path: root/1694/CH1/EX1.32/EX1_32.sce
blob: 7e8d754b0420d0b05f389300e182d543da456322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clear;
clc;
printf("\nEx1.32\n");
//page no.-39
//given
V=5000;........//potential diff. in volt
n=1;...........//order
h=1;
k=1;
l=1;
d=0.204*10^-9;.....//interplanar spacing in m
m=9.1*10^-31;......//mass of electron
e=1.6*10^-19;.....//charge
h=6.625*10^-34;...//planck constant

lambda=h/sqrt(2*m*e*V).........//wavelength in m
//Now by bragg's law

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

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