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

//Variable declaration    
M=63.5;     //atomic weight(gm/mol)
N=6.023*10^23;      //avagadro number
r=1.278*10^-8;     //atomic radius(cm)
n=4;

//Calculations
m=M/N;           //mass(g)
a=4*r/sqrt(2);      //lattice constant(cm)
V=a^3;          //volume(m^3)
rho=n*m/V;       //density of crystal(g/cm^3)

//Result
printf("\n density of crystal is %0.3f gm/cm^3",rho)