summaryrefslogtreecommitdiff
path: root/1187/CH2/EX2.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1187/CH2/EX2.6
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 '1187/CH2/EX2.6')
-rwxr-xr-x1187/CH2/EX2.6/6.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/1187/CH2/EX2.6/6.sce b/1187/CH2/EX2.6/6.sce
new file mode 100755
index 000000000..7156c4856
--- /dev/null
+++ b/1187/CH2/EX2.6/6.sce
@@ -0,0 +1,27 @@
+clc
+
+a=5; // m/s^2
+s=0.5; // m
+phi=atand(1/4); // degrees
+g=9.81; // m/s^2
+rho=880; // kg/m^3
+
+a_x=a*cosd(phi); // Horizontal component of acceleration
+a_z=a*sind(phi); // Vertical component of acceleration
+
+theta=atand(a_x/(a_z+g)); // b=tan(theta)
+
+d=(tand(phi)+tand(theta))/(1-tand(phi)*tand(theta));
+
+c=s*d;
+
+V=s*(s^2-s*c/2);
+
+disp("(a) Volume left in the tank =")
+disp(V*1000)
+disp("L")
+
+P=rho*g*s*cosd(phi);
+disp("(b)Pressure at the lowest corners of the tank =")
+disp(P)
+disp("Pa") \ No newline at end of file