summaryrefslogtreecommitdiff
path: root/3665/CH6/EX6.13/Ex6_13.sce
blob: 8de0c4df0b78432d89587f322aa5b7cee601aa37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc//
//
//

//Variable declaration
V=344;    //voltage(V)
n=1;
theta=60*%pi/180;    //angle(radian)

//Calculation
lamda=(12.26/sqrt(V));      //de broglie wavelength(angstrom)

d=n*lamda/(2*sin(theta));    //spacing of crystal(angstrom)

//Result
printf("\n spacing of crystal is %0.4f angstrom",d)