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 /409/CH1 | |
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 '409/CH1')
-rwxr-xr-x | 409/CH1/EX1.1/Example1_1.sce | 17 | ||||
-rwxr-xr-x | 409/CH1/EX1.2/Example1_2.sce | 19 | ||||
-rwxr-xr-x | 409/CH1/EX1.3/Example1_3.sce | 19 | ||||
-rwxr-xr-x | 409/CH1/EX1.4/Example1_4.sce | 16 | ||||
-rwxr-xr-x | 409/CH1/EX1.5/Example1_5.sce | 19 | ||||
-rwxr-xr-x | 409/CH1/EX1.6/Example1_6.sce | 18 | ||||
-rwxr-xr-x | 409/CH1/EX1.7/Example1_7.sce | 10 | ||||
-rwxr-xr-x | 409/CH1/EX1.8/Example1_8.sce | 14 | ||||
-rwxr-xr-x | 409/CH1/EX1.9/Example1_9.sce | 12 |
9 files changed, 144 insertions, 0 deletions
diff --git a/409/CH1/EX1.1/Example1_1.sce b/409/CH1/EX1.1/Example1_1.sce new file mode 100755 index 000000000..655abdd0c --- /dev/null +++ b/409/CH1/EX1.1/Example1_1.sce @@ -0,0 +1,17 @@ +clear;
+clc;
+
+// Example 1.1
+printf('Example 1.1\n\n');
+//Page no. 13
+// Solution
+
+//(a)
+printf('(a) We cannot add the two terms since both have different dimensions. 1 foot has the dimension of the length, whereas 3 seconds has the dimension of time.\n');
+
+//(b)
+// Converting all terms to same unit
+hp = 746;//[watts]
+total = 1*hp+300;//[watts]
+
+printf(' (b) Answer is %i watts.',total);
\ No newline at end of file diff --git a/409/CH1/EX1.2/Example1_2.sce b/409/CH1/EX1.2/Example1_2.sce new file mode 100755 index 000000000..89e6ea1b6 --- /dev/null +++ b/409/CH1/EX1.2/Example1_2.sce @@ -0,0 +1,19 @@ +clear ;
+clc;
+
+// Example 1.2
+printf('Example 1.2\n\n');
+//Page no. 17
+// Solution
+
+// (a)
+// Converting all terms to same unit
+ml = 1.61;//[km]
+km = (2*1)/(ml);//[miles]
+printf('(a) 2 kilometers is equal to %.2f miles.\n',km);
+
+//(b)
+in = 2.54;//[cm]
+dy = 24*60;//[min]
+nw_unit = (400*(in)^3*1)/(1*dy);//[cubic centimetre/min]
+printf(' (b) 400 cubic in./day is equal to %.2f cubic centimetre/min.',nw_unit);
\ No newline at end of file diff --git a/409/CH1/EX1.3/Example1_3.sce b/409/CH1/EX1.3/Example1_3.sce new file mode 100755 index 000000000..b6b04d331 --- /dev/null +++ b/409/CH1/EX1.3/Example1_3.sce @@ -0,0 +1,19 @@ +clear;
+clc;
+
+// Example 1.3
+printf('Example 1.3\n\n');
+//Page no. 17
+// Solution
+
+//(a)
+// Converting all terms to same unit
+nm = 10^(-9);//[meters]
+m1 = 10;//[decimeters]
+dm = (1.8*nm*m1)/(1*1);//[decimeters]
+printf('(a) 1.8 nanometers is equal to %.2e dm.\n',dm);
+
+//(b)
+m2 = 39.37;//[inches]
+in = (1.8*nm*m2)/(1*1);//[inches]
+printf(' (b) 1.8 nanometers is equal to %.2e in.\n',in);
\ No newline at end of file diff --git a/409/CH1/EX1.4/Example1_4.sce b/409/CH1/EX1.4/Example1_4.sce new file mode 100755 index 000000000..f0983ffc4 --- /dev/null +++ b/409/CH1/EX1.4/Example1_4.sce @@ -0,0 +1,16 @@ +clear ;
+clc;
+
+// Example 1.4
+printf('Example 1.4\n\n');
+//Page no. 19
+// Solution
+
+// Potential Energy = mgh
+// Assume 100 lb means 100 lb mass
+m = 100;//[lb]
+g = 32.2 ;//[ft/second square]
+h = 10 ;//[ft]
+gc = 32.174 ;//[(ft*lbm)/(second square/lbf)]
+pe = (m*(g/gc)*h) ;//[ft*lbf]
+printf('Potential Energy is equal to %i (ft)(lbf).\n',pe);
\ No newline at end of file diff --git a/409/CH1/EX1.5/Example1_5.sce b/409/CH1/EX1.5/Example1_5.sce new file mode 100755 index 000000000..2c7578093 --- /dev/null +++ b/409/CH1/EX1.5/Example1_5.sce @@ -0,0 +1,19 @@ +clear;
+clc;
+
+// Example 1.5
+printf('Example 1.5\n\n');
+//Page no.20
+// Solution
+
+// Basis 1 min
+// Assume 100lb means 100 lb mass
+g = 10^6 ;//[ug mol]
+lb = 454 ;//[g mol]
+ml = .001 ;//[L]
+L = 3.531*10^(-2);//[ft^3]
+hr = 60 ;//[min]
+dy = 24 ;//[hr]
+pr_rate = (0.6*1*1*1*hr*dy/(g*lb*ml*L)); //[ft*lbf]
+
+printf('Production rate of glucose is %.4f lb mol/(cubic feet*day).\n',pr_rate);
\ No newline at end of file diff --git a/409/CH1/EX1.6/Example1_6.sce b/409/CH1/EX1.6/Example1_6.sce new file mode 100755 index 000000000..1669f2ea5 --- /dev/null +++ b/409/CH1/EX1.6/Example1_6.sce @@ -0,0 +1,18 @@ +clear;
+clc;
+
+// Example 1.6
+printf('Example 1.6\n\n');
+//Page no. 22
+// Solution
+
+// using suitable conversion factors inside front cover of book
+printf('By analysing dimensionally both sides of equation you can say that both values of 16.2 must have the units of microns(10^-6 m).\n');
+printf(' The exponential must be dimensionless so that 0.021 must have the associated units of s^(-1).\n');
+
+m = 39.27 ;//[inches]
+um = 10^(-6) ;//[meters]
+c1 = 16.2*m*um ;//[inches]
+mn = 60 ;//[seconds]
+c2 = 0.021*60;//[min^(-1)]
+printf('\n New modified expression so that we can put t in minutes and get d in inches is as follows,\n d(in) = %.2e(1-e^(-%.2f*t(min))) \n',c1,c2);
\ No newline at end of file diff --git a/409/CH1/EX1.7/Example1_7.sce b/409/CH1/EX1.7/Example1_7.sce new file mode 100755 index 000000000..0f7862e64 --- /dev/null +++ b/409/CH1/EX1.7/Example1_7.sce @@ -0,0 +1,10 @@ +clear;
+clc;
+
+// Example 1.7
+printf('Example 1.7\n\n');
+// Page no. 23
+// Solution
+
+printf('By analysing dimensionally , both a and x have same units(from 1+(x^2/a^2)),thus left hand side of equation has units of 1/x(from d/dx),\nAnd right hand side has units of x^2 (from product a.x).\n');
+printf('\nTherefore something is wrong as the equation is not dimensionally consistent.\n');
\ No newline at end of file diff --git a/409/CH1/EX1.8/Example1_8.sce b/409/CH1/EX1.8/Example1_8.sce new file mode 100755 index 000000000..769ee17d8 --- /dev/null +++ b/409/CH1/EX1.8/Example1_8.sce @@ -0,0 +1,14 @@ +clear ;
+clc;
+
+// Example 1.8
+printf('Example 1.8\n\n');
+// Page no. 28
+// Solution
+
+// Using Scientifc notation
+x = 2.24 * 10^4 ; //[kg]
+y = 2.01 * 10^4 ;//[kg]
+D = x - y ;// Difference obtained by using scientific notation //[kg]
+
+printf(' Difference obtained by using scientific notation is %.4e kg.\n Hence answer is good to 2 decimal places. \n',D);
\ No newline at end of file diff --git a/409/CH1/EX1.9/Example1_9.sce b/409/CH1/EX1.9/Example1_9.sce new file mode 100755 index 000000000..6065b257b --- /dev/null +++ b/409/CH1/EX1.9/Example1_9.sce @@ -0,0 +1,12 @@ +clear;
+clc;
+
+// Example 1.9
+printf('Example 1.9\n\n');
+//Page no. 29
+// Solution
+
+um = 3 ;//[kb]
+kb = 1000 ;//[bp]
+bs_prs = (3*um*kb)/(1*1);
+printf('The number of base pairs are %i bp. \n',bs_prs);
\ No newline at end of file |