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 --- 1436/CH2/EX2.1/ex2_1.sce | 19 +++++++++++++++++++ 1436/CH2/EX2.10/ex2_10.sce | 23 +++++++++++++++++++++++ 1436/CH2/EX2.11/ex2_11.sce | 9 +++++++++ 1436/CH2/EX2.12/ex2_12.sce | 10 ++++++++++ 1436/CH2/EX2.2/ex2_2.sce | 19 +++++++++++++++++++ 1436/CH2/EX2.3/ex2_3.sce | 7 +++++++ 1436/CH2/EX2.4/ex2_4.sce | 19 +++++++++++++++++++ 1436/CH2/EX2.5/ex2_5.sce | 9 +++++++++ 1436/CH2/EX2.6/ex2_6.sce | 9 +++++++++ 1436/CH2/EX2.7/ex2_7.sce | 12 ++++++++++++ 1436/CH2/EX2.8/ex2_8.sce | 16 ++++++++++++++++ 1436/CH2/EX2.9/ex2_9.sce | 14 ++++++++++++++ 12 files changed, 166 insertions(+) create mode 100755 1436/CH2/EX2.1/ex2_1.sce create mode 100755 1436/CH2/EX2.10/ex2_10.sce create mode 100755 1436/CH2/EX2.11/ex2_11.sce create mode 100755 1436/CH2/EX2.12/ex2_12.sce create mode 100755 1436/CH2/EX2.2/ex2_2.sce create mode 100755 1436/CH2/EX2.3/ex2_3.sce create mode 100755 1436/CH2/EX2.4/ex2_4.sce create mode 100755 1436/CH2/EX2.5/ex2_5.sce create mode 100755 1436/CH2/EX2.6/ex2_6.sce create mode 100755 1436/CH2/EX2.7/ex2_7.sce create mode 100755 1436/CH2/EX2.8/ex2_8.sce create mode 100755 1436/CH2/EX2.9/ex2_9.sce (limited to '1436/CH2') diff --git a/1436/CH2/EX2.1/ex2_1.sce b/1436/CH2/EX2.1/ex2_1.sce new file mode 100755 index 000000000..de2f12fb6 --- /dev/null +++ b/1436/CH2/EX2.1/ex2_1.sce @@ -0,0 +1,19 @@ +// Example 2.1, page no-116 +clear +clc + +//(a) +//1kg/cm^2=10000 mmWG +x=10000*10 +printf("(a)\n 10kg/cm^2 = %d mmWG",x) + +//(b) +onemm_Hg=13.546 +y=10^5/onemm_Hg +y=y/10^3 +printf("\n(b)\n10kg/cm^2 = 10^5 mmWG = %.2f * 10^3 mmHg",y) + +//(c) +onebar=1.03 +z=10/onebar +printf("\n(c)\n10kg/cm^2 = %.2f bars",z) diff --git a/1436/CH2/EX2.10/ex2_10.sce b/1436/CH2/EX2.10/ex2_10.sce new file mode 100755 index 000000000..196cc017c --- /dev/null +++ b/1436/CH2/EX2.10/ex2_10.sce @@ -0,0 +1,23 @@ +// Example 2.10, page no-121 +clear +clc + +c=0.57 + +//(a) +d=0.1 +di1=100 +di2=1000 +c1=c*di1*10/d +c1=ceil(c1) +printf("(a)\nC1=%d pf",c1) + +//(b) +c2=c*di2*10/d +printf("\n(b)\nC2=%d pf",c2) + +//(c) +ds=0.09 +c11=c*di1*10/ds +c12=c*di2*10/ds +printf("\n(c)\nC1 = %.1f pf\nC2 = %d pf",c11,c12) diff --git a/1436/CH2/EX2.11/ex2_11.sce b/1436/CH2/EX2.11/ex2_11.sce new file mode 100755 index 000000000..d74df0f83 --- /dev/null +++ b/1436/CH2/EX2.11/ex2_11.sce @@ -0,0 +1,9 @@ +// Example 2.11, page no-121 +clear +clc + +A=1 +p1=10 +W1=A*p1 +printf("W1 = %d kg",W1) +printf("\nWith the 4 standard weights of 10kg, 20kg, 30kg and 40kg ") diff --git a/1436/CH2/EX2.12/ex2_12.sce b/1436/CH2/EX2.12/ex2_12.sce new file mode 100755 index 000000000..74097aea9 --- /dev/null +++ b/1436/CH2/EX2.12/ex2_12.sce @@ -0,0 +1,10 @@ +// Example 2.12, page no-122 +clear +clc + +p1=10^-2 +h1=20 +K=p1/h1^2 +p2=K*30^2 +p2=p2*100 +printf("The unknown pressure p2 = %.2f * 10^-2 torr",p2) diff --git a/1436/CH2/EX2.2/ex2_2.sce b/1436/CH2/EX2.2/ex2_2.sce new file mode 100755 index 000000000..e060120c0 --- /dev/null +++ b/1436/CH2/EX2.2/ex2_2.sce @@ -0,0 +1,19 @@ +// Example 2.2, page no-116 +clear +clc + +//(a) +gamm=1000 +d=35 +dens_Hg=13.546 +press_in_kg_cm=gamm*d*10^-4 +press_in_mmHg=gamm*d/dens_Hg +press_in_mmHg=press_in_mmHg/10^3 +printf("(a)\nThe pressure at depth of %d meters in a water tank=%.1f kg/cm^2 = %.2f*10^3 mmHg",d,press_in_kg_cm,press_in_mmHg) + +//(b) +press_atm=1.03 +abspress=press_in_kg_cm+press_atm +abspress_mmHg=press_in_mmHg*1000+760 +abspress_mmHg=abspress_mmHg/1000 +printf("\n(b)\nAbsolute Pressure= %.2f kg/cm^2 Abs = %.2f*10^3 mmHg Abs",abspress,abspress_mmHg) diff --git a/1436/CH2/EX2.3/ex2_3.sce b/1436/CH2/EX2.3/ex2_3.sce new file mode 100755 index 000000000..c03a57f3c --- /dev/null +++ b/1436/CH2/EX2.3/ex2_3.sce @@ -0,0 +1,7 @@ +// Example 2.3, page no-116 +clear +clc + +egp=260 +abspress=760-egp +printf("Absolute Presssure = %d mmHg",abspress) diff --git a/1436/CH2/EX2.4/ex2_4.sce b/1436/CH2/EX2.4/ex2_4.sce new file mode 100755 index 000000000..c95a19a00 --- /dev/null +++ b/1436/CH2/EX2.4/ex2_4.sce @@ -0,0 +1,19 @@ +// Example 2.4, page no-117 +clear +clc + +//(a) +p_diff=500 +pdiff=p_diff*13.546/10000 +printf("(a)\np1-p2 = %.3f kg/cm^2",pdiff) + +//(b) +p1=6770 +p_atm=10300 +abs_p1=p1+p_atm +printf("\n(b)If p2 is open to atmosphere:\nAbsolute Pressure P1 = %d mmWG abs.",abs_p1) + +//(c) +P1=500 +P1_gauge=P1-760 +printf("\n(c)If p2 is evacuated and sealed:\np1= %d mmHg gauge Pressure",P1_gauge) diff --git a/1436/CH2/EX2.5/ex2_5.sce b/1436/CH2/EX2.5/ex2_5.sce new file mode 100755 index 000000000..218927709 --- /dev/null +++ b/1436/CH2/EX2.5/ex2_5.sce @@ -0,0 +1,9 @@ +// Example 2.5, page no-117 +clear +clc + +spe_grav_water=1 +spe_grav_X=spe_grav_water*100/50 +wt_dens_water=1000 +wt_dens_X=wt_dens_water*2 +printf("Weight Density of X = %d kg/m^3",wt_dens_X) diff --git a/1436/CH2/EX2.6/ex2_6.sce b/1436/CH2/EX2.6/ex2_6.sce new file mode 100755 index 000000000..16c917127 --- /dev/null +++ b/1436/CH2/EX2.6/ex2_6.sce @@ -0,0 +1,9 @@ +// Example 2.6, page no-117 +clear +clc + +A=1/20 +p_diff=1500 +printf("(a)\nAs Delta_h=A2/A1*h << h and normally negligiblefor well type manometer\nhence, p1-p2 = h = %d =111 mmHg",p_diff) + +printf("\n(b)\nh measured above the oriinal reference will be half of H, i.e. 111/2=55.5 mmHg\n(Since area of both legs are same)") diff --git a/1436/CH2/EX2.7/ex2_7.sce b/1436/CH2/EX2.7/ex2_7.sce new file mode 100755 index 000000000..4b7ecb36c --- /dev/null +++ b/1436/CH2/EX2.7/ex2_7.sce @@ -0,0 +1,12 @@ +// Example 2.7, page no-119 +clear +clc + +printf("1 kg/cm^2 = 10 mWG\n") +//(a) +press=10+2 +printf("\n(a)Bourdon Gauge is mounted 20 meters below water line:\nPressure read by the Gauge = %d kg/cm^2",press) + +//(b) +press2=10-3 +printf("\n\n(b)Bourdon Gauge is located 30 meters above the water line:\nPressure read by the Gauge = %d kg/cm^2",press2) diff --git a/1436/CH2/EX2.8/ex2_8.sce b/1436/CH2/EX2.8/ex2_8.sce new file mode 100755 index 000000000..afaf6ff06 --- /dev/null +++ b/1436/CH2/EX2.8/ex2_8.sce @@ -0,0 +1,16 @@ +// Example 2.8, page no-120 +clear +clc + +dens_water=1000 +h1=125 +h2=250 +d2=(h1/h2)*dens_water +printf("(a)\nDensity of Liquid = %d kg/m^3",d2) +printf("\nSpecific Density of the liquid = %.1f",(h1/h2)) + +//(b) +printf("\n\n(b)\nIf Values of water and liquid interchanged:\n") +d3=(h2/h1)*dens_water +printf("\nDensity of Liquid = %d kg/m^3",d3) +printf("\nSpecific Density of the liquid = %.1f",(h2/h1)) diff --git a/1436/CH2/EX2.9/ex2_9.sce b/1436/CH2/EX2.9/ex2_9.sce new file mode 100755 index 000000000..97a26228a --- /dev/null +++ b/1436/CH2/EX2.9/ex2_9.sce @@ -0,0 +1,14 @@ +// Example 2.9, page no-120 +clear +clc + +R=120 +l=122 +a=0.1 +rho=R*a/l +R1=140 +l1=sqrt(R1*a*l/rho) +l1=ceil(l1) +printf("Length l1 = %d meters",l1) +A1=a*l/l1 +printf("\nArea A1 = %.4f mm^2",A1) -- cgit