summaryrefslogtreecommitdiff
path: root/3768/CH5/EX5.12/Ex5_12.sce
blob: c50f36b6b51a0ec07aae90d94c859dd9f2b7d3b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Example number 5.12, Page number 89

clc;clear;
close;

//Variable declaration
m=1.675*10**-27;    //mass(kg)
h=6.626*10**-34;   //plank constant
E=0.04;     //kinetic energy(eV)
e=1.6*10**-19;    //charge(c)
n=1;
d110=0.314*10**-9;   //spacing(m)
//Calculation
E=E*e;       //energy(J)
lamda=h/sqrt(2*m*E);
theta=asin(n*lamda/(2*d110));     //glancing angle(radian)
theta=theta*180/%pi;        //glancing angle(degrees)
theta_m=60*(theta-int(theta));
//Result
printf("glancing angle is %d degree and %d minutes",theta,theta_m)
//answer given in the book is wrong