summaryrefslogtreecommitdiff
path: root/3720/CH3/EX3.11/Ex3_11.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3720/CH3/EX3.11/Ex3_11.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3720/CH3/EX3.11/Ex3_11.sce')
-rw-r--r--3720/CH3/EX3.11/Ex3_11.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3720/CH3/EX3.11/Ex3_11.sce b/3720/CH3/EX3.11/Ex3_11.sce
new file mode 100644
index 000000000..edfb30db7
--- /dev/null
+++ b/3720/CH3/EX3.11/Ex3_11.sce
@@ -0,0 +1,16 @@
+// Example 3_11
+clc;clear;funcprot(0);
+// Given values
+rho_sw=1025;// The density of sea water in kg/m^3
+rho_con=2300;// The density of concrete in kg/m^3
+g=9.81;// The acceleration due to gravity in m/s^2
+
+// Calculation (a)
+V=0.4*0.4*3; // Volume of the block in m^3;
+F_air=(rho_con*g*V)/1000;// kN
+printf('Tension in rope must be equal to the weight of the block,F_air=%0.1f kN\n',F_air);
+// Calculation (b)
+F_b=(rho_sw*g*V)/1000;// kN
+printf('Balance force F_b=%0.1f kN\n',F_b);
+F_water=F_air-F_b;// kN
+printf('Tension in rope when it is completely immersed in water,F_water=%0.1f kN\n',F_water);