summaryrefslogtreecommitdiff
path: root/2096/CH2/EX2.28/ex_2_28.sce
diff options
context:
space:
mode:
Diffstat (limited to '2096/CH2/EX2.28/ex_2_28.sce')
-rwxr-xr-x2096/CH2/EX2.28/ex_2_28.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2096/CH2/EX2.28/ex_2_28.sce b/2096/CH2/EX2.28/ex_2_28.sce
new file mode 100755
index 000000000..a6685fe2a
--- /dev/null
+++ b/2096/CH2/EX2.28/ex_2_28.sce
@@ -0,0 +1,15 @@
+//Example 2.28 //resistive and reactive component
+clc;
+clear;
+close;
+//given data :
+C1=190*10^-12; // in farad
+C2=170*10^-12; // in farad
+Q1=75;
+Q2=45;
+f=200; // in kilo-Hz
+w=2*%pi*f*1000;
+Rx=((C1*Q1)-(C2*Q2))/(w*C1*C2*Q1*Q2);
+Xx=(C1-C2)/(w*C1*C2);
+disp(Rx,"the resistive,Rx(ohm) = ")
+disp(Xx,"the reactive component,Xx(ohm) = ")