summaryrefslogtreecommitdiff
path: root/3830/CH1/EX1.28/Ex1_28.sce
diff options
context:
space:
mode:
Diffstat (limited to '3830/CH1/EX1.28/Ex1_28.sce')
-rw-r--r--3830/CH1/EX1.28/Ex1_28.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3830/CH1/EX1.28/Ex1_28.sce b/3830/CH1/EX1.28/Ex1_28.sce
new file mode 100644
index 000000000..f7d240103
--- /dev/null
+++ b/3830/CH1/EX1.28/Ex1_28.sce
@@ -0,0 +1,27 @@
+// Exa 1.28
+
+clc;
+clear;
+
+// Given
+
+// Limiting error for series and parallel combination of capacitors
+c1 = 99; // Capacitor value in Mf
+dc1 = 1; // Variation in capacitor value in Mf
+c2 = 49; // Capacitor value in Mf
+dc2 = 1; // Variation in capacitor value in Mf
+
+// Solution
+
+// C1 = c1(±) dc1;
+// C2 = c2(±) dc2;
+printf('For parallel combination, we have y = C1+C2 \n');
+dY_parallel = dc1 + dc2;
+printf(' Limiting error for parallel combination = (±) %d Mf \n',dY_parallel);
+printf(' For series combination, we have 1/y = 1/C1+1/C2 \n');
+Yseries = c1*c2/(c1+c2);
+dYseries = (-dc1+c1)*(-dc2+c2)/(c1+c2-dc1-dc2);
+dY = Yseries - dYseries;
+printf(' Limiting error for series combination = (±) %.3f Mf \n',dY);
+
+//The answer provided in the textbook is wrong