summaryrefslogtreecommitdiff
path: root/1316/CH1/EX1.15
diff options
context:
space:
mode:
Diffstat (limited to '1316/CH1/EX1.15')
-rw-r--r--1316/CH1/EX1.15/example1_15.sce20
-rw-r--r--1316/CH1/EX1.15/resultexample1_15.txt4
2 files changed, 24 insertions, 0 deletions
diff --git a/1316/CH1/EX1.15/example1_15.sce b/1316/CH1/EX1.15/example1_15.sce
new file mode 100644
index 000000000..52791bc04
--- /dev/null
+++ b/1316/CH1/EX1.15/example1_15.sce
@@ -0,0 +1,20 @@
+//Chapter 1
+//Example 1.15
+//Page 38
+
+clear;
+clc;
+
+STF = 33;
+t1 = 1.5;
+t2 = 0.75;
+T1 = 20;
+T2 = 41;
+bi = STF*T1;
+bf = STF*T2;
+e = 2.718
+//Finding the error in temperature represents
+
+printf("The value of b(0.75) is %.1f mV \n",bi+(bf-bi)*[1-e^(-t2/t1)]);
+printf("This corresponds to an indicated temperature of %.1f degree celcius\n",(bi+(bf-bi)*[1-e^(-t2/t1)])/STF);
+printf("So the error is %.1f degree celcius because the actual temperature is 41 degree celcius \n",T2-((bi+(bf-bi)*[1-e^(-t2/t1)])/STF));
diff --git a/1316/CH1/EX1.15/resultexample1_15.txt b/1316/CH1/EX1.15/resultexample1_15.txt
new file mode 100644
index 000000000..30922a2df
--- /dev/null
+++ b/1316/CH1/EX1.15/resultexample1_15.txt
@@ -0,0 +1,4 @@
+ The value of b(0.75) is 932.7 mV
+This corresponds to an indicated temperature of 28.3 degree celcius
+So the error is 12.7 degree celcius because the actual temperature is 41 degree celcius
+ \ No newline at end of file