summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.20/Ex5_20.sce
blob: 90a36751422e9d54f676a3c1afc6f9cbc0cc775c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 5_20
clc();
clear;
//To compute the cube edge of unit cell
n=1
lamda=1.54*10^-10  //units in m
theta=19.2   //units in degrees
d=(n*lamda)/(2*sin(theta*%pi/180))
h=1
k=1
l=1
a=d*sqrt(h^2+k^2+k^2)
printf("Cube edge of unit cell a=")
disp(a)
printf("meters")