diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3250/CH2/EX1.1/Ex2_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3250/CH2/EX1.1/Ex2_1.sce')
-rwxr-xr-x | 3250/CH2/EX1.1/Ex2_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3250/CH2/EX1.1/Ex2_1.sce b/3250/CH2/EX1.1/Ex2_1.sce new file mode 100755 index 000000000..10d3cdb8c --- /dev/null +++ b/3250/CH2/EX1.1/Ex2_1.sce @@ -0,0 +1,16 @@ +clc +// Given that +h=15 // Height of spur in cm +l= 50 // Length of cast in cm +w= 25 // weidth of cast in cm +h1= 15 // Height of cast in cm +g= 981 // Acceleration due to gravity in cm/sec^2 +Ag= 5 // Cross sectional area of the grate in cm^2 +// Sample Problem 1 on page no. 46 +printf("\n # PROBLEM 2.1 # \n") +v3= sqrt(2* g * h) +V = l*w*h1 +tf1= V/(Ag*v3) +Am = l*w +tf2 = (Am/Ag)*(1/sqrt(2*g))*2*(sqrt(h) - sqrt(h-h1)) +printf("\n Filling time for first design = %f sec, \n Filling time for second design = %f sec", tf1, tf2) |