summaryrefslogtreecommitdiff
path: root/2594/CH1/EX1.16/Ex1_16.sce
blob: 3c1af7dcd3a8265b305275f9de07a3eef77e2c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
Wa=28.1
disp("Wa = "+string(Wa)) //initializing value of atomic weight.
D=2.33
disp("D = "+string(D)+"gram/cm^3") //initializing value of density.
Na=6.02*10^23
disp("Na = "+string(Na)+"atoms/mole") //initializing value of avagadro number.
na =(Na*D)/(Wa)
disp("na =(Na*D)/(Wa)= "+string(na)+" atoms/cm^3")//calculation

//the value of na (number of atoms in 1 cm^3 of silicon), provided after calculation in the book is wrong.