summaryrefslogtreecommitdiff
path: root/3828/CH10/EX10.2/Ex10_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3828/CH10/EX10.2/Ex10_2.sce')
-rw-r--r--3828/CH10/EX10.2/Ex10_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3828/CH10/EX10.2/Ex10_2.sce b/3828/CH10/EX10.2/Ex10_2.sce
new file mode 100644
index 000000000..28bd4f961
--- /dev/null
+++ b/3828/CH10/EX10.2/Ex10_2.sce
@@ -0,0 +1,16 @@
+//Chapter 10 : Crystallography and Crystal Imperfections
+
+clear;
+
+//Variable declaration
+rho=7.86*10**3 //density of material
+n=2 //No. of atoms/cell
+A=55.85 //Atomic weigth
+No=6.023*10**26 //Avagadro's No.
+
+//Calculations
+a=((n*A)/(No*rho))**(1/3)/10**-10
+
+//Result
+mprintf("Lattice parameter a= %.5f*10**-10 m",a)
+