summaryrefslogtreecommitdiff
path: root/1271/CH13/EX13.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH13/EX13.4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1271/CH13/EX13.4')
-rwxr-xr-x1271/CH13/EX13.4/4.txt2
-rwxr-xr-x1271/CH13/EX13.4/example13_4.sce16
2 files changed, 18 insertions, 0 deletions
diff --git a/1271/CH13/EX13.4/4.txt b/1271/CH13/EX13.4/4.txt
new file mode 100755
index 000000000..2ad840dc3
--- /dev/null
+++ b/1271/CH13/EX13.4/4.txt
@@ -0,0 +1,2 @@
+ Spacing between the plane in first case is a / 1.
+ Spacing between the plane in second case is a / 0.577350 .
diff --git a/1271/CH13/EX13.4/example13_4.sce b/1271/CH13/EX13.4/example13_4.sce
new file mode 100755
index 000000000..bde3db690
--- /dev/null
+++ b/1271/CH13/EX13.4/example13_4.sce
@@ -0,0 +1,16 @@
+clc
+// Given that
+x1 = 1 // coordinate on x axis for first plane
+y1 = 0 // coordinate on y axis for first plane
+z1 = 0 // coordinate on z axis for first plane
+x2 = 1 // coordinate on x axis for second plane
+y2 = 1 // coordinate on y axis for second plane
+z2 = 1 // coordinate on z axis for second plane
+// Sample Problem 4 on page no. 13.25
+printf("\n # PROBLEM 4 # \n")
+printf("Standard formula used \n")
+printf(" d = 1 / (x1^2 + y1^2 + z1^2)^1/2 \n")
+d1 = 1 / sqrt(x1^2 + y1^2 + z1^2)
+d2 = 1 / sqrt(x2^2 + y2^2 + z2^2)
+printf("\n Spacing between the plane in first case is a / %d.\n Spacing between the plane in second case is a / %f .",d1,d2)
+