summaryrefslogtreecommitdiff
path: root/2360/CH6/EX6.22/ex6_22.sce
diff options
context:
space:
mode:
Diffstat (limited to '2360/CH6/EX6.22/ex6_22.sce')
-rwxr-xr-x2360/CH6/EX6.22/ex6_22.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2360/CH6/EX6.22/ex6_22.sce b/2360/CH6/EX6.22/ex6_22.sce
new file mode 100755
index 000000000..36a45ce74
--- /dev/null
+++ b/2360/CH6/EX6.22/ex6_22.sce
@@ -0,0 +1,24 @@
+// Exa 6.22
+format('v',7);clc;clear;close;
+// Given data
+f = 1;// in kHz
+f = f * 10^3;// in Hz
+omega = 2*%pi*f;// in rad/sec
+Z1 = 1.65;// in k ohm
+Z2 = 15.3;// in k ohm
+R3 = 2.5;// in k ohm
+C3 = 10;// in µF
+C3 = C3 * 10^-6;// in F
+XC3= 1/(2*%pi*f*C3);
+Z3= R3-%i*XC3;// in Ω
+// From balance equation, Z1*Z4= Z2*Z3
+Z4= Z2*Z3/Z1;// in Ω
+R4= real(Z4);// in kΩ
+XC4= abs(imag(Z4));// in kΩ
+C4= 1/(2*%pi*f*XC4);// in F
+C4= C4*10^6;// in µF
+disp("The components of branch DC : ")
+disp("Rx= "+string(R4)+" kΩ")
+disp("Cx= "+string(C4)+" µF")
+
+