summaryrefslogtreecommitdiff
path: root/3768/CH3/EX3.12/Ex3_12.sce
blob: c3d2af8c9c2ce3ae1b396e493e694567b8789de6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example number 3.12, Page number 50
clc;clear;
close;

//Variable declaration
C=0.494*10**-9;      //height(m)
a=0.27*10**-9;      //distance(m)
M=65.37;      //atomic weight
N=6.02*10**26;    //avagadro number
//Calculation
V=3*sqrt(3)*a**2*C/2;      //volume of cell(m**3)
m=6*M/N;
rho=m/V;      //density of Zn(kg/m**3)
//Result
printf("volume of cell is %.3e m**3",V)
printf("\n density of Zn is %.1f kg/m**3",rho)
//answer in the book is wrong