summaryrefslogtreecommitdiff
path: root/2132/CH2/EX2.1/Example2_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH2/EX2.1/Example2_1.sce
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 '2132/CH2/EX2.1/Example2_1.sce')
-rwxr-xr-x2132/CH2/EX2.1/Example2_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2132/CH2/EX2.1/Example2_1.sce b/2132/CH2/EX2.1/Example2_1.sce
new file mode 100755
index 000000000..52551238f
--- /dev/null
+++ b/2132/CH2/EX2.1/Example2_1.sce
@@ -0,0 +1,17 @@
+//Example 2.1
+clc;
+clear;
+close;
+
+//Given data :
+V=10;//in m^3
+W=80;//in kN
+g=9.81;//gravity accelerat
+w_water=9.81;//specific weight of water
+format('v',6);
+w=W/V;//specific weight in kN/m^3
+disp(w,"Specific weight of liquid in kN/m^3 : ");
+mass_density=w*1000/g;//kg/m^3
+disp(mass_density,"Mass density of liquid in kg/m^3 : ");
+specific_gravity=w/w_water;//unitless
+disp(specific_gravity,"Specific gravity : ");