summaryrefslogtreecommitdiff
path: root/1319/CH1/EX1.12
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1319/CH1/EX1.12
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1319/CH1/EX1.12')
-rw-r--r--1319/CH1/EX1.12/1_12.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/1319/CH1/EX1.12/1_12.sce b/1319/CH1/EX1.12/1_12.sce
new file mode 100644
index 000000000..d51e94f28
--- /dev/null
+++ b/1319/CH1/EX1.12/1_12.sce
@@ -0,0 +1,28 @@
+// RLC circuit problem to find the resonance frequncy and impedance magnitude
+
+clc;
+clear;
+
+R=10;
+L=100*(10^-3);
+C=0.01*(10^-6);
+
+f0=1/((2*%pi)*(sqrt(L*C)));
+// New frequencies according to the problem statement
+f1=f0-1000;
+f2=f0+1000;
+
+w1=2*%pi*f1;
+w2=2*%pi*f2;
+
+Xl1=w1*L;
+Xc1=1/(w1*C);
+
+Xl2=w2*L;
+Xc2=1/(C*w2);
+
+Z1=sqrt((R^2)+((Xl1-Xc1)^2));
+Z2=sqrt((R^2)+((Xl2-Xc2)^2));
+
+mprintf('The Impedance magnitude at 1KHz below resonance (Capacitive) =%f ohms \n',Z1)
+mprintf('The Impedance magnitude at 1KHz above resonance (Inductive) =%f ohms \n',Z2)