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 /2258/CH8 | |
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 '2258/CH8')
-rwxr-xr-x | 2258/CH8/EX8.1/8_1.sce | 9 | ||||
-rwxr-xr-x | 2258/CH8/EX8.2/8_2.sce | 10 | ||||
-rwxr-xr-x | 2258/CH8/EX8.3/8_3.sce | 7 | ||||
-rwxr-xr-x | 2258/CH8/EX8.4/8_4.sce | 10 | ||||
-rwxr-xr-x | 2258/CH8/EX8.5/8_5.sce | 14 |
5 files changed, 50 insertions, 0 deletions
diff --git a/2258/CH8/EX8.1/8_1.sce b/2258/CH8/EX8.1/8_1.sce new file mode 100755 index 000000000..65c426cea --- /dev/null +++ b/2258/CH8/EX8.1/8_1.sce @@ -0,0 +1,9 @@ +clc();
+clear;
+// To calculate the surface area to volume ratio
+r=5; //radius in m
+SA=4*%pi*r^2; //surface area of sphere in m^2
+V=(4/3)*%pi*r^3; //volume of sphere in m^3
+R=SA/V; //ratio
+//surface area to volume ratio can also be given by 3/radius
+printf("surface area to volume ratio of sphere is %f m-1",R);
diff --git a/2258/CH8/EX8.2/8_2.sce b/2258/CH8/EX8.2/8_2.sce new file mode 100755 index 000000000..831d4b0a1 --- /dev/null +++ b/2258/CH8/EX8.2/8_2.sce @@ -0,0 +1,10 @@ +clc();
+clear;
+// To calculate the surface area to volume ratio
+d=26; //distance in m
+r=d/2; //radius in m
+SA=4*%pi*r^2; //surface area of sphere in m^2
+V=(4/3)*%pi*r^3; //volume of sphere in m^3
+R=SA/V; //ratio
+//surface area to volume ratio can also be given by 3/radius
+printf("surface area to volume ratio of sphere is %f m-1",R);
diff --git a/2258/CH8/EX8.3/8_3.sce b/2258/CH8/EX8.3/8_3.sce new file mode 100755 index 000000000..dabc7205a --- /dev/null +++ b/2258/CH8/EX8.3/8_3.sce @@ -0,0 +1,7 @@ +clc();
+clear;
+// To calculate the volume of cone
+r=1; //radius in m
+h=1; //height in m
+V=(1/3)*%pi*(r^2)*h;
+printf("volume of cone is %f m^3",V);
diff --git a/2258/CH8/EX8.4/8_4.sce b/2258/CH8/EX8.4/8_4.sce new file mode 100755 index 000000000..5b348ec92 --- /dev/null +++ b/2258/CH8/EX8.4/8_4.sce @@ -0,0 +1,10 @@ +clc();
+clear;
+// To calculate the total surface area of cone
+r=3; //radius in m
+h=4; //height in m
+SA=%pi*r*sqrt((r^2)+(h^2));
+TSA=SA+(%pi*r^2);
+printf("total surface area of cone is %f m^2",TSA);
+
+//answer given in the book is wrong
diff --git a/2258/CH8/EX8.5/8_5.sce b/2258/CH8/EX8.5/8_5.sce new file mode 100755 index 000000000..6b4e31a6f --- /dev/null +++ b/2258/CH8/EX8.5/8_5.sce @@ -0,0 +1,14 @@ +clc();
+clear;
+// To calculate the height of cone
+V=100; //volume of cone in cubic inches
+r=5; //radius of cone in inches
+r_m=r*0.0254; //radius of cone in m
+//volume V=(1/3)*%pi*(r^2)*h
+//therefore h = (3*V)/(%pi*r^2)
+h=(3*V)/(%pi*r^2); //height in inches
+R=3/r_m;
+printf("height of the cone is %f inches",h);
+printf("surface area to volume ratio is %f m-1",R);
+
+//answer for the surface area to volume ratio given in the book is wrong
|