summaryrefslogtreecommitdiff
path: root/1694/CH1/EX1.30/EX1_30.sce
blob: 92873174f77da303bd555e729f2bc12b24b2798e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear;
clc;
printf("\nEx1.30\n");
//page no.-38
//given
V=854;.............//accelerated voltage in volt
theta=56;.........//angle
n=1;..............//order
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

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

printf("\nspacing is 2.53*10^-11 m\n");