diff options
Diffstat (limited to '3871/CH12/EX12.17/Ex12_17.sce')
-rw-r--r-- | 3871/CH12/EX12.17/Ex12_17.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/3871/CH12/EX12.17/Ex12_17.sce b/3871/CH12/EX12.17/Ex12_17.sce new file mode 100644 index 000000000..733e0a4c1 --- /dev/null +++ b/3871/CH12/EX12.17/Ex12_17.sce @@ -0,0 +1,29 @@ +//=====================================================================================
+//chapter 12 example 17
+
+
+
+clc;
+clear all;
+
+//variable declaration
+R1 = 3100; //resistance of arm in Ω
+R2 = 25000; //resistance of arm in Ω
+R4 = 100000; //resistance of arm in Ω
+C1 = 5.2*10^-6; //capacitance in F
+f = 25000; //frequency in Hz
+
+//calculations
+//C3 = C1*((R2/R4)-(R1/R3))
+//X = C1*(R2/R4)
+//Y = C1*(R1/R3)
+w = 2*%pi*f;
+x =1/((w^2)*R1*C1);
+//R3 = x/C3
+A = (C1*R2)/R4;
+B = 1+(C1*R1/x);
+C3 = A/B; //capcitance in uuF
+R3 = x/C3; //equivalent parallel resistance in Ω
+
+//result
+mprintf("equivalent parallel resistance = %3.2f K Ω",(R3*10^-3));
|