summaryrefslogtreecommitdiff
path: root/3651/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3651/CH2/EX2.5/Ex2_5.sce')
-rw-r--r--3651/CH2/EX2.5/Ex2_5.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3651/CH2/EX2.5/Ex2_5.sce b/3651/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..7797115bc
--- /dev/null
+++ b/3651/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,19 @@
+
+clc
+
+
+
+//Variable declaration
+a=3.615
+r=1.278
+h=1
+k=1
+l=1
+
+//Calculations
+a=(4*r)/sqrt(2)
+d=a/(sqrt(h**2+k**2+l**2))
+
+//Result
+printf('a =%0.3fAngstroms\n',(a))
+printf('d =%0.3fAngstroms\n',(d))