summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.10/Ex5_10.sce
blob: 8708477496501c4e070e587462869da4b41746c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 5_10
clc();
clear;
//To calculate the lattice constant
h=6.63*10^-34      //Plancks Constant
m=1.804*10^-27
KB=1.38*10^-23
T=300
lamda=h/sqrt(3*m*KB*T)            //units in mts
n=2
a=(sqrt(3)*lamda)/2         //units in mts
printf("Lattice constant a=");
disp(a);
printf("mts")