blob: 733e0a4c19f6010438eaa1aae3d5925ecde4666f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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));
|