summaryrefslogtreecommitdiff
path: root/3651/CH1/EX1.11/Ex1_11.sce
blob: bb4c4de9a8aad0b5ca97ef35d5f8989cec338e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
//variable declaration
n=4     
A=63.55                 //Atomic wt. of NaCl
N=6.02*10**26           //Avagadro number
rho=8930                //density

//Calculations
a=((n*A)/(N*rho))**(1/3)      //Lattice Constant

//Result
printf('lattice constant, a=%0.3f nm',(a*10**9))