diff options
Diffstat (limited to '575/CH2')
-rwxr-xr-x | 575/CH2/EX2.2.1/2_2_1.jpg | bin | 0 -> 16173 bytes | |||
-rwxr-xr-x | 575/CH2/EX2.2.1/2_2_1.sce | 8 | ||||
-rwxr-xr-x | 575/CH2/EX2.3.1/2_3_1.jpg | bin | 0 -> 45392 bytes | |||
-rwxr-xr-x | 575/CH2/EX2.3.1/2_3_1.sce | 9 | ||||
-rwxr-xr-x | 575/CH2/EX2.4.1/2_4_1.jpg | bin | 0 -> 169655 bytes | |||
-rwxr-xr-x | 575/CH2/EX2.4.1/2_4_1.sce | 16 | ||||
-rwxr-xr-x | 575/CH2/EX2.5.2/2_5_2.jpg | bin | 0 -> 114428 bytes | |||
-rwxr-xr-x | 575/CH2/EX2.5.2/2_5_2.sce | 12 | ||||
-rwxr-xr-x | 575/CH2/EX2.7.1/2_7_1.jpg | bin | 0 -> 115870 bytes | |||
-rwxr-xr-x | 575/CH2/EX2.7.1/2_7_1.sce | 16 | ||||
-rwxr-xr-x | 575/CH2/EX2.7.2/2_7_2.jpg | bin | 0 -> 157123 bytes | |||
-rwxr-xr-x | 575/CH2/EX2.7.2/2_7_2.sce | 13 |
12 files changed, 74 insertions, 0 deletions
diff --git a/575/CH2/EX2.2.1/2_2_1.jpg b/575/CH2/EX2.2.1/2_2_1.jpg Binary files differnew file mode 100755 index 000000000..2f95c3505 --- /dev/null +++ b/575/CH2/EX2.2.1/2_2_1.jpg diff --git a/575/CH2/EX2.2.1/2_2_1.sce b/575/CH2/EX2.2.1/2_2_1.sce new file mode 100755 index 000000000..e9ed0b8e1 --- /dev/null +++ b/575/CH2/EX2.2.1/2_2_1.sce @@ -0,0 +1,8 @@ +clc
+pathname=get_absolute_file_path('2_2_1.sce')
+filename=pathname+filesep()+'221.sci'
+exec(filename)
+printf(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
+AcclFinal=AcclInitial*((3600*24*365)^2)/10^5;
+//the calculations involved are the conversion factors
+printf(" \n final acceleration=%E Km/Yr^2",AcclFinal)
\ No newline at end of file diff --git a/575/CH2/EX2.3.1/2_3_1.jpg b/575/CH2/EX2.3.1/2_3_1.jpg Binary files differnew file mode 100755 index 000000000..c05ca5607 --- /dev/null +++ b/575/CH2/EX2.3.1/2_3_1.jpg diff --git a/575/CH2/EX2.3.1/2_3_1.sce b/575/CH2/EX2.3.1/2_3_1.sce new file mode 100755 index 000000000..9a12fcef5 --- /dev/null +++ b/575/CH2/EX2.3.1/2_3_1.sce @@ -0,0 +1,9 @@ +clc
+//this program is used to convert lb.ft/min^2 to kg.cm/s^2
+pathname=get_absolute_file_path('2_3_1.sce')
+filename=pathname+filesep()+'231.sci'
+exec(filename)
+Final=Initial*0.453593*100/(3.281*60*60)
+//the calculations involved are conversion factors
+disp("final=")
+disp(Final); disp("kg.cm/s^2")
\ No newline at end of file diff --git a/575/CH2/EX2.4.1/2_4_1.jpg b/575/CH2/EX2.4.1/2_4_1.jpg Binary files differnew file mode 100755 index 000000000..7f88bedd3 --- /dev/null +++ b/575/CH2/EX2.4.1/2_4_1.jpg diff --git a/575/CH2/EX2.4.1/2_4_1.sce b/575/CH2/EX2.4.1/2_4_1.sce new file mode 100755 index 000000000..417edede6 --- /dev/null +++ b/575/CH2/EX2.4.1/2_4_1.sce @@ -0,0 +1,16 @@ +clc
+//this program is used to calculate weight of water at different places
+pathname=get_absolute_file_path('2_4_1.sce')
+filename=pathname+filesep()+'241.sci'
+exec(filename)
+mass=volume*density;
+printf("mass of the water = volume x density=%f lbm",mass)
+printf(" \n At sealevel, g=32.174 ft/s^2")
+g=32.174;
+weight=mass*g/32.174;
+printf(" \n weight at sealevel= %f lbf \n",weight)
+printf(" \n At denver, g=32.139 ft/s^2")
+g=32.139;
+weight=mass*g/32.174;
+printf("\n weight at denver= %f lbf",weight)
+//the division with 32.174 is to convert lbm.ft/s^2 to lbf
\ No newline at end of file diff --git a/575/CH2/EX2.5.2/2_5_2.jpg b/575/CH2/EX2.5.2/2_5_2.jpg Binary files differnew file mode 100755 index 000000000..e840dfddf --- /dev/null +++ b/575/CH2/EX2.5.2/2_5_2.jpg diff --git a/575/CH2/EX2.5.2/2_5_2.sce b/575/CH2/EX2.5.2/2_5_2.sce new file mode 100755 index 000000000..242fae755 --- /dev/null +++ b/575/CH2/EX2.5.2/2_5_2.sce @@ -0,0 +1,12 @@ +clc
+pathname=get_absolute_file_path('2_5_2.sce')
+filename=pathname+filesep()+'252.sci'
+exec(filename)
+//Here We used standard library functions mean and st_deviation
+ybar=mean(y);
+sy=st_deviation(y);
+defaultvalue=ybar+3*sy+1;
+printf("the maximum allowed value of y i.e. bad batches in a week is %d \n", defaultvalue)
+disp("in case of 2 standard deviations");
+defaultvalue=ybar+2*sy+1;
+printf("the limiting value of y i.e. bad batches in a week is %d",defaultvalue)
\ No newline at end of file diff --git a/575/CH2/EX2.7.1/2_7_1.jpg b/575/CH2/EX2.7.1/2_7_1.jpg Binary files differnew file mode 100755 index 000000000..7a338141d --- /dev/null +++ b/575/CH2/EX2.7.1/2_7_1.jpg diff --git a/575/CH2/EX2.7.1/2_7_1.sce b/575/CH2/EX2.7.1/2_7_1.sce new file mode 100755 index 000000000..07600b4ce --- /dev/null +++ b/575/CH2/EX2.7.1/2_7_1.sce @@ -0,0 +1,16 @@ +clc
+pathname=get_absolute_file_path('2_7_1.sce')
+filename=pathname+filesep()+'271.sci'
+exec(filename)
+//this program uses least squares fit to solve for slope and intercept.
+//hence the value differs from textbook a bit.
+sx=sum(x);sx2=sum(x^2);sy=sum(y);sxy=sum(x.*y);n=length(x);
+A=[sx,n;sx2,sx];B=[sy;sxy];p=A\B;
+m=p(1,1);b=p(2,1);
+clf()
+xtitle('2.7_1.sce','Vdot(L/min)','R','boxed')
+plot2d(x,y,style=3)
+disp("in case 2, R=36")
+R=36;
+V=m*R+b;
+printf("then V=%f",V);
\ No newline at end of file diff --git a/575/CH2/EX2.7.2/2_7_2.jpg b/575/CH2/EX2.7.2/2_7_2.jpg Binary files differnew file mode 100755 index 000000000..10970c32b --- /dev/null +++ b/575/CH2/EX2.7.2/2_7_2.jpg diff --git a/575/CH2/EX2.7.2/2_7_2.sce b/575/CH2/EX2.7.2/2_7_2.sce new file mode 100755 index 000000000..94a3b5338 --- /dev/null +++ b/575/CH2/EX2.7.2/2_7_2.sce @@ -0,0 +1,13 @@ +clc
+pathname=get_absolute_file_path('2_7_2.sce')
+filename=pathname+filesep()+'272.sci'
+exec(filename)
+disp(sqrtT);
+sx=sum(sqrtT);sx2=sum(T);sy=sum(M);sxy=sum(sqrtT.*M);n=length(T);
+A=[sx,n;sx2,sx]; B=[sy;sxy]; p=A\B;
+a=p(1,1);b=p(2,1);
+clf()
+xtitle('2.7.2.sce','T1/2','mdot','boxed')
+plot2d(sqrtT,M,style=3);
+printf("slope=%f",a);
+printf("\n intercept=%f",b);
\ No newline at end of file |