summaryrefslogtreecommitdiff
path: root/147/CH1/EX1.9/Example1_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '147/CH1/EX1.9/Example1_9.sce')
-rw-r--r--147/CH1/EX1.9/Example1_9.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/147/CH1/EX1.9/Example1_9.sce b/147/CH1/EX1.9/Example1_9.sce
new file mode 100644
index 000000000..06574a6d4
--- /dev/null
+++ b/147/CH1/EX1.9/Example1_9.sce
@@ -0,0 +1,15 @@
+close();
+clear;
+clc;
+//temperature coefficients of resistances 'R1', 'R2' are 'a1', 'a2'
+a1 = 0.004;
+a2 = 0.005;
+t1 = 10; //degree C
+t2 = 60; //degree C
+//At t1
+//R12 = Ro1/Ro2
+R12 = (1+t1*a2)/(1+t1*a1);
+//At t2
+//power ratio 'p'
+p = R12*(1+t2*a1)/(1+t2*a2);
+mprintf("Ratio of power consumed in R2 to that in R1 at %d degree C, p = %0.3f",t2,p); \ No newline at end of file