summaryrefslogtreecommitdiff
path: root/2507/CH3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2507/CH3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2507/CH3')
-rwxr-xr-x2507/CH3/EX3.1/Ex3_1.sce19
-rwxr-xr-x2507/CH3/EX3.2/Ex3_2.sce8
-rwxr-xr-x2507/CH3/EX3.3/Ex3_3.sce8
-rwxr-xr-x2507/CH3/EX3.4/Ex3_4.sce20
-rwxr-xr-x2507/CH3/EX3.5/Ex3_5.sce13
-rwxr-xr-x2507/CH3/EX3.6/Ex3_6.sce7
6 files changed, 75 insertions, 0 deletions
diff --git a/2507/CH3/EX3.1/Ex3_1.sce b/2507/CH3/EX3.1/Ex3_1.sce
new file mode 100755
index 000000000..562a909f3
--- /dev/null
+++ b/2507/CH3/EX3.1/Ex3_1.sce
@@ -0,0 +1,19 @@
+clc
+clear
+printf("Example 3.1 | Page number 73 \n\n");
+//(a) Average human temperature in °C
+//(b) Annual average temperature in peninsular India in °F
+
+//Solution
+//Part(a)
+printf("Part (a)\n")
+tf = 98.6 //°F //average temperature Human Body in °C
+tc = (tf - 32)/1.8 //°C
+printf("Average human temperature in °C = %.1f °C\n\n",tc);
+
+
+//Part(b)
+printf("Part (b)\n")
+tc = 27 //°C //Annual average temperature in peninsular India in °C
+tf = 1.8*tc+32 //Annual average temperature in peninsular India in °F
+printf("Annual average temperature in peninsular India in °F = %.1f °F\n\n",tf);
diff --git a/2507/CH3/EX3.2/Ex3_2.sce b/2507/CH3/EX3.2/Ex3_2.sce
new file mode 100755
index 000000000..3b73247d7
--- /dev/null
+++ b/2507/CH3/EX3.2/Ex3_2.sce
@@ -0,0 +1,8 @@
+clc
+clear
+printf("Example 3.2 | Page number 73 \n\n");
+//find temperature in kelvin
+
+t = 27 //°C
+T = t + 273.15 //K
+printf("Temperature in Kelvin = %.2f K",T)
diff --git a/2507/CH3/EX3.3/Ex3_3.sce b/2507/CH3/EX3.3/Ex3_3.sce
new file mode 100755
index 000000000..d12133c46
--- /dev/null
+++ b/2507/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,8 @@
+clc
+clear
+printf("Example 3.3 | Page number 74 \n\n");
+//find temperature in °C
+
+T = 250 //K
+t = T - 273.15 //°C
+printf("Temperature in °C = %.2f °C",t)
diff --git a/2507/CH3/EX3.4/Ex3_4.sce b/2507/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..ee496d812
--- /dev/null
+++ b/2507/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,20 @@
+clc
+clear
+printf("Example 3.4 | Page number 77 \n\n");
+//Part(a) Determine what A reads when B reads 30
+printf("Part (a)\n");
+//t_A and t_B are readings two Celsius thermometers A and B
+//t_A = p + q*t_B + r*(t_B)^2
+//p, q and are are constants.
+X = [1, 0, 0; 1, 100, 100^2; 1, 50, 50^2]\[0; 100; 51]
+p = X(1);
+q = X(2);
+r = X(3);
+
+deff('y = t_A(t_B)',['y = q*t_B + r*(t_B^2)'])
+t_B = 30;
+
+printf("When thermometer B reads %0.1f°C then thermometer A reads, t_B = %.02f°C\n",t_B,t_A(t_B));
+//Part(b)
+printf("\nPart (b)\n");
+printf("This part is theoritical quesition, book shall be referred for solution.");
diff --git a/2507/CH3/EX3.5/Ex3_5.sce b/2507/CH3/EX3.5/Ex3_5.sce
new file mode 100755
index 000000000..c76849a6a
--- /dev/null
+++ b/2507/CH3/EX3.5/Ex3_5.sce
@@ -0,0 +1,13 @@
+clc
+clear
+printf("Example 3.5 | Page number 79 \n\n");
+//Find the temperature attained by the coil during full load.
+Rt = 80
+t = 25
+//Substituting Rt and t in Rt = Ro(1+0.00395t)
+Ro = 80/(1+0.00395*25)
+printf("Ro {Resistance at 0°C} = %.2f ohm\n",Ro)
+//Full load condition
+Rt = 95
+//temperature at full load condition
+printf("t {Temperature at full load condition} = %.2f °C",((Rt/Ro)-1)/0.00395);
diff --git a/2507/CH3/EX3.6/Ex3_6.sce b/2507/CH3/EX3.6/Ex3_6.sce
new file mode 100755
index 000000000..90f010722
--- /dev/null
+++ b/2507/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,7 @@
+clc
+clear
+printf("Example 3.6 | Page number 80 \n\n");
+//What will be thermometer read in place where gas thermometer reads 50°C
+deff('y = e(t)',['y = 0.0367*t + 1.33 * 10^(-4)*t^2'])
+
+printf("Thermometer read in place where gas thermometer reads 50°C = %.2f °C",e(50)/(e(100)/100))