From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3250/CH2/EX1.1/Ex2_1.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 3250/CH2/EX1.1/Ex2_1.sce (limited to '3250/CH2/EX1.1/Ex2_1.sce') 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) -- cgit