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 /1466/CH2/EX2.4/2_4.sce | |
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 '1466/CH2/EX2.4/2_4.sce')
-rwxr-xr-x | 1466/CH2/EX2.4/2_4.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1466/CH2/EX2.4/2_4.sce b/1466/CH2/EX2.4/2_4.sce new file mode 100755 index 000000000..9f06f98f4 --- /dev/null +++ b/1466/CH2/EX2.4/2_4.sce @@ -0,0 +1,19 @@ +
+clc
+//initialisation of variables
+d= 6 //ft
+l= 4 //ft
+W= 2500 //lb
+Wt= 500 //lb
+cg= 1.5 //ft
+d1= 64 //lb/ft^3
+//CALCULATIONS
+w1= W+Wt
+V= w1/d1
+D= V/(%pi*(d^2/4))
+hb= D/2
+BG= (%pi*d^4)/(64*V)
+hg= BG+hb
+x= ((w1*hg)-(W*cg))/Wt
+//RESULTS
+printf (' Maximum height c.g above the bottom= %.2f ft ',x)
|