summaryrefslogtreecommitdiff
path: root/3768/CH2/EX2.2/Ex2_2.sce
blob: df87f0e2c3281feb5a4bdb21998ef093bb4faa5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example number 2.2, Page number 32

clc;clear;
close;
// Variable declaration
N=6.02*10**23;           // Avagadro Number
n=2;
rho=7860;    // density(kg/m**3)
M=55.85;    // atomic weight(amu)

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

// Result
printf( "lattice constant is %.4f Angstrom",a)