diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH13/EX13.4 | |
download | Scilab-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-x | 1271/CH13/EX13.4/4.txt | 2 | ||||
-rwxr-xr-x | 1271/CH13/EX13.4/example13_4.sce | 16 |
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) + |