summaryrefslogtreecommitdiff
path: root/2258/CH8/EX8.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2258/CH8/EX8.5
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 '2258/CH8/EX8.5')
-rwxr-xr-x2258/CH8/EX8.5/8_5.sce14
1 files changed, 14 insertions, 0 deletions
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