summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.8/Ex5_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH5/EX5.8/Ex5_8.sce')
-rw-r--r--3537/CH5/EX5.8/Ex5_8.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3537/CH5/EX5.8/Ex5_8.sce b/3537/CH5/EX5.8/Ex5_8.sce
new file mode 100644
index 000000000..63e7008fe
--- /dev/null
+++ b/3537/CH5/EX5.8/Ex5_8.sce
@@ -0,0 +1,10 @@
+//Example 5_8
+clc();
+clear;
+//To find lattice parameter
+n=1
+lamda=0.58 //units in A
+theta=9.5 //units in degrees
+a=(n*lamda)/(2*sin(theta*%pi/180))
+printf("lattice parametera=%.3fA",a)
+//In text book answer printed wrong as 3.52A correct answer is 1.75A