summaryrefslogtreecommitdiff
path: root/884/CH11/EX11.6/Example11_6.sce
blob: 4300d0b23876d12d8726aa0296f62f556bde342c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//density of ionic crystals

clear;
clc;

printf("\t Example 11.6\n");

Na=22.99;//mass of one atom of Na, amu
Cl=35.45;//mass of one atom of Cl, amu
NA=6.022*10^23;//avogadro no.
mass=4*(Na+Cl)/NA;//mass in a unit cell in grams
a=564*10^-10;//edge length, cm
V=a^3;//volume of unit cell, cc
d=mass/V;//density in g/cc

printf("\t the density of NaCl is : %4.2f g/cc\n",d);

//End