diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /797/CH3/EX3.12.s | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '797/CH3/EX3.12.s')
-rw-r--r-- | 797/CH3/EX3.12.s/3_12_solution.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/797/CH3/EX3.12.s/3_12_solution.sce b/797/CH3/EX3.12.s/3_12_solution.sce new file mode 100644 index 000000000..d1b1745b0 --- /dev/null +++ b/797/CH3/EX3.12.s/3_12_solution.sce @@ -0,0 +1,20 @@ +//Solution 3-12 +WD=get_absolute_file_path('3_12_solution.sce'); +datafile=WD+filesep()+'3_12_example.sci'; +clc; +exec(datafile) +a_x = (V_1 - V_0) / t; //acceleration = rate of change of velocity (horizontal) +a_x = a_x / 3.6 //converting acceleration to [m/s^2] +theta = atan(a_x / (g + a_z)) //angle made by free surface of water with horizontal [radians] +printf("Vertical rise at the back of the tank relative to the midplande is") +//Case 1: +deltaz_1 = b_1 / 2 * tan(theta); +printf("\n1.For long side parallel to direction of motion =%1.2f cm", deltaz_1 * 100); +//Case 2: +deltaz_2 = b_2 / 2 * tan(theta); +printf("\n2.For short side parallel to direction of motion =%1.2f cm", deltaz_2 * 100); +if(deltaz_2 < deltaz_1) + printf("\n Hence short side must be parallel to the direction of motion."); +else + printf("\n Hence long side must be parallel to the direction of motion "); +end |