summaryrefslogtreecommitdiff
path: root/3768/CH2
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH2')
-rw-r--r--3768/CH2/EX2.1/Ex2_1.sce16
-rw-r--r--3768/CH2/EX2.2/Ex2_2.sce15
-rw-r--r--3768/CH2/EX2.3/Ex2_3.sce15
-rw-r--r--3768/CH2/EX2.4/Ex2_4.sce16
-rw-r--r--3768/CH2/EX2.5/Ex2_5.sce17
-rw-r--r--3768/CH2/EX2.6/Ex2_6.sce19
-rw-r--r--3768/CH2/EX2.7/Ex2_7.sce16
-rw-r--r--3768/CH2/EX2.8/Ex2_8.sce18
8 files changed, 132 insertions, 0 deletions
diff --git a/3768/CH2/EX2.1/Ex2_1.sce b/3768/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..8d0fe3f33
--- /dev/null
+++ b/3768/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,16 @@
+//Example number 2.1, Page number 31
+
+clc;clear;
+close;
+
+// Variable declaration
+N=6.02*10**26; // Avagadro Number
+n=8; // number of atoms
+a=5.6*10**-10; // lattice constant(m)
+M=72.59; // atomic weight(amu)
+
+// Calculation
+rho=n*M/(a**3*N); // density(kg/m**3)
+
+// Result
+printf( "density is %.3f kg/m^3",rho)
diff --git a/3768/CH2/EX2.2/Ex2_2.sce b/3768/CH2/EX2.2/Ex2_2.sce
new file mode 100644
index 000000000..df87f0e2c
--- /dev/null
+++ b/3768/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,15 @@
+//Example number 2.2, Page number 32
+
+clc;clear;
+close;
+// Variable declaration
+N=6.02*10**23; // Avagadro Number
+n=2;
+rho=7860; // density(kg/m**3)
+M=55.85; // atomic weight(amu)
+
+// Calculation
+a=(n*M/(rho*N))**(1/3)*10**8; // lattice constant(angstrom)
+
+// Result
+printf( "lattice constant is %.4f Angstrom",a)
diff --git a/3768/CH2/EX2.3/Ex2_3.sce b/3768/CH2/EX2.3/Ex2_3.sce
new file mode 100644
index 000000000..13169c8bb
--- /dev/null
+++ b/3768/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,15 @@
+//Example number 2.3, Page number 32
+clc;clear;
+close;
+
+// Variable declaration
+N=6.02*10**26; // Avagadro Number
+n=2;
+rho=530; // density(kg/m**3)
+M=6.94; // atomic weight(amu)
+
+// Calculation
+a=(n*M/(rho*N))**(1/3)*10**10; // lattice constant(angstrom)
+
+// Result
+printf( "lattice constant is %.3f Angstrom",a)
diff --git a/3768/CH2/EX2.4/Ex2_4.sce b/3768/CH2/EX2.4/Ex2_4.sce
new file mode 100644
index 000000000..9eb26cebf
--- /dev/null
+++ b/3768/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,16 @@
+//Example number 2.4, Page number 32
+
+clc;clear;
+close;
+
+// Variable declaration
+N=6.02*10**26; // Avagadro Number
+rho=7870; // density(kg/m**3)
+M=55.85; // atomic weight(amu)
+a=2.9*10**-10; // lattice constant(m)
+
+// Calculation
+n=a**3*rho*N/M; // number of atoms
+
+// Result
+printf( "number of atoms is %d",n)
diff --git a/3768/CH2/EX2.5/Ex2_5.sce b/3768/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..96bd510c8
--- /dev/null
+++ b/3768/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,17 @@
+//Example number 2.5, Page number 33
+clc;clear;
+close;
+
+// Variable declaration
+N=6.02*10**26; // Avagadro Number
+M=63.5; // atomic weight(amu)
+r=0.1278*10**-9; // atomic radius(m)
+n=4;
+
+// Calculation
+a=r*sqrt(8); // lattice constant(m)
+rho=n*M/(N*a**3); // density(kg/m**3)
+
+// Result
+printf( "density is %.2f kg/m**3",rho)
+//answer in the book is wrong
diff --git a/3768/CH2/EX2.6/Ex2_6.sce b/3768/CH2/EX2.6/Ex2_6.sce
new file mode 100644
index 000000000..ef1ee0395
--- /dev/null
+++ b/3768/CH2/EX2.6/Ex2_6.sce
@@ -0,0 +1,19 @@
+//Example number 2.6, Page number 33
+
+clc;clear;
+close;
+
+// Variable declaration
+r1=1.258*10**-10; // radius(m)
+r2=1.292*10**-10; // radius(m)
+
+// Calculation
+a_bcc=4*r1/sqrt(3);
+v=a_bcc**3;
+V1=v/2;
+a_fcc=2*sqrt(2)*r2;
+V2=a_fcc**3/4;
+V=(V1-V2)*100/V1; // percent volume change is",V,"%"
+
+// Result
+printf( "percent volume change is %.1f %%",V)
diff --git a/3768/CH2/EX2.7/Ex2_7.sce b/3768/CH2/EX2.7/Ex2_7.sce
new file mode 100644
index 000000000..1d1415738
--- /dev/null
+++ b/3768/CH2/EX2.7/Ex2_7.sce
@@ -0,0 +1,16 @@
+//Example number 2.7, Page number 34
+
+clc;clear;
+close;
+
+// Variable declaration
+r=poly([0],'r')
+
+// Calculation
+a=4*r/sqrt(2);
+R=(4*r/(2*sqrt(2)))-r
+
+// Result
+printf( "maximum radius of sphere is ")
+disp(R)
+
diff --git a/3768/CH2/EX2.8/Ex2_8.sce b/3768/CH2/EX2.8/Ex2_8.sce
new file mode 100644
index 000000000..1f9885652
--- /dev/null
+++ b/3768/CH2/EX2.8/Ex2_8.sce
@@ -0,0 +1,18 @@
+//Example number 2.8, Page number 34
+clc;clear;
+close;
+
+// Variable declaration
+N=6.023*10**23; // Avagadro Number
+Mw=23+35.5; // molecular weight of NaCl
+rho=2.18; // density(gm/cm**3)
+
+// Calculation
+M=Mw/N; // mass of 1 molecule(gm)
+Nv=rho/M; // number of molecules per unit volume(mole/cm**3)
+Na=2*Nv; // number of atoms
+a=(1/Na)**(1/3)*10**8; // distance between atoms(angstrom)
+
+// Result
+printf( "distance between atoms is %.2f Angstrom",a)
+