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