summaryrefslogtreecommitdiff
path: root/3537/CH4/EX4.14/Ex4_14.sce
blob: 2e909d425cea3f4dd744e22c05e25420dcb6fe39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 4_14
clc();
clear;
//To determine the space of the reflecting plane and the volume of the unit cell
lemda=3*10^-10                        //units in meters
theta=40                             //units in degrees
h=1
k=0
l=0
n=1
d=(n*lemda)/(2*sin(theta*%pi/180))*10^10
printf("The space of the reflecting plane is %.3f angstrom",d)
v=(d*sqrt(h^2+k^2+l^2)*10^-10)^3
printf("\n\nThe volume of the unit cell is %.33f m^3",v)