summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.1/Ex2_1.sce
blob: 4fc3b5080f8a1e52d67219e07f764fd8434db97c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//
//
//

//Variable declaration    
M=28;     //atomic weight of Si
N=6.023*10^23;      //avagadro number
a=5.3*10^-10;      //lattice constant(m)
n=4;

//Calculations
V=a^3;          //volume(m^3)
m=M/(N*10^3);           //mass(kg)
rho=n*m/V;       //volume density(kg/m^3)

//Result
printf("\n volume density is %e kg/m^3",rho)
printf("\n answer in the book is wrong")