summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.24/Ex2_24.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH2/EX2.24/Ex2_24.sce')
-rw-r--r--3755/CH2/EX2.24/Ex2_24.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3755/CH2/EX2.24/Ex2_24.sce b/3755/CH2/EX2.24/Ex2_24.sce
new file mode 100644
index 000000000..2f0e8e7f7
--- /dev/null
+++ b/3755/CH2/EX2.24/Ex2_24.sce
@@ -0,0 +1,16 @@
+clear
+//
+//
+//
+
+//Variable declaration
+rho=7870; //density(kg/m^3)
+M=55.8; //molecular weight
+N=6.02*10^26; //avagadro number
+n=2; //number of atoms
+
+//Calculations
+a=(n*M/(rho*N))^(1/3); //lattice constant(m)
+
+//Result
+printf("\n lattice constant is %0.3f angstrom",a*10^10)