summaryrefslogtreecommitdiff
path: root/1026/CH1/EX1.1/Example1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1026/CH1/EX1.1/Example1_1.sce')
-rwxr-xr-x1026/CH1/EX1.1/Example1_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1026/CH1/EX1.1/Example1_1.sce b/1026/CH1/EX1.1/Example1_1.sce
new file mode 100755
index 000000000..e5c261ad2
--- /dev/null
+++ b/1026/CH1/EX1.1/Example1_1.sce
@@ -0,0 +1,17 @@
+//chapter-1,Example1_1,pg 40
+
+n=4
+
+M=65.34
+
+N=6.023*10^23
+
+d111=2.08*10^-8//interplannar spacing
+
+a=d111*sqrt((1^2)+(1^2)+(1^2))
+
+D=(n*M)/(N*(a^3))
+
+printf("density of Cu-metal\n")
+
+printf("D=%.2f g/cc",D) \ No newline at end of file