summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.1/Ex5_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH5/EX5.1/Ex5_1.sce')
-rw-r--r--3537/CH5/EX5.1/Ex5_1.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3537/CH5/EX5.1/Ex5_1.sce b/3537/CH5/EX5.1/Ex5_1.sce
new file mode 100644
index 000000000..5d279ddc9
--- /dev/null
+++ b/3537/CH5/EX5.1/Ex5_1.sce
@@ -0,0 +1,22 @@
+//Example 5_1
+clc();
+clear;
+//To calculate the number of atoms per meter square of plane
+//For (100) Plane
+a=2
+noofatomspercell=1/4*2*a
+noofatomsperunitarea=noofatomspercell/a^2 //units in Terms of R
+printf("Number of atoms per unit area of 100 plane %.2f*R^-2",noofatomsperunitarea)
+//For (110) Plane
+a=2
+noofatomspercell=1/4*2*a
+noofatomsperunitarea=noofatomspercell/(sqrt(2)*a^2) //units in Terms of R
+printf("\nNumber of atoms per unit area of 110 plane %.2f*R^-2",noofatomsperunitarea)
+//For (111) Plane
+a=2
+noofatomspercell=1/4*2*a
+bc=sqrt(2)*a
+ad=(sqrt(3)/2)*sqrt(2)*a
+area=0.5*bc*ad
+noofatomsperunitarea=noofatomspercell/area //units in Terms of R
+printf("\nNumber of atoms per unit area of 110 plane %.2f*R^-2",noofatomsperunitarea)