summaryrefslogtreecommitdiff
path: root/629/CH4/EX4.5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /629/CH4/EX4.5
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 '629/CH4/EX4.5')
-rw-r--r--629/CH4/EX4.5/ex4_5.txt2
-rw-r--r--629/CH4/EX4.5/example4_5.sce19
2 files changed, 21 insertions, 0 deletions
diff --git a/629/CH4/EX4.5/ex4_5.txt b/629/CH4/EX4.5/ex4_5.txt
new file mode 100644
index 000000000..45d806291
--- /dev/null
+++ b/629/CH4/EX4.5/ex4_5.txt
@@ -0,0 +1,2 @@
+
+The new levels of water in the tube are z1 = 0.021 m, z2 = 0.339 m. \ No newline at end of file
diff --git a/629/CH4/EX4.5/example4_5.sce b/629/CH4/EX4.5/example4_5.sce
new file mode 100644
index 000000000..dabd3d8a8
--- /dev/null
+++ b/629/CH4/EX4.5/example4_5.sce
@@ -0,0 +1,19 @@
+clear
+clc
+//Example 4.5 ROTATING MANOMETER TUBE
+g=9.81; //[m/s^2]
+r1=0.18; //[m]
+r2=0.36; //[m]
+//Initial water levels
+h1=0.18; //[m]
+h2=0.18; //[m]
+w=8; //angular speed[rad/s]
+//-z1+z2=w^2*(r2^2-r1^2)/(2*g)
+//z1+z2=h1+h2
+A=[-1 1;1 1];
+B=[w^2*(r2^2-r1^2)/(2*g); h1+h2]
+//Az=B, z=(A^-1)*B, z=[z1;z2]
+z=inv(A)*B
+z1=z(1) //[m]
+z2=z(2) //[m]
+printf("\nThe new levels of water in the tube are z1 = %.3f m, z2 = %.3f m.\n",z1,z2) \ No newline at end of file