summaryrefslogtreecommitdiff
path: root/3840/CH2/EX2.2/Ex2_2.sce
blob: fe0f81c132bf39fafafa9c93fde33666d2acb5a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//
//
//

//Variable declaration
N=6.02*10**26           //Avagadro Number
n=2
rho=530    //density(kg/m**3)
M=6.94     //atomic weight(amu)

//Calculation
a=(n*M/(rho*N))**(1/3)*10**10    //lattice constant(angstrom)

//Result
printf("\n lattice constant is %0.3f  angstrom",a)