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/EX8.5 | |
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/EX8.5')
-rwxr-xr-x | 2258/CH8/EX8.5/8_5.sce | 14 |
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
|