summaryrefslogtreecommitdiff
path: root/1319/CH1/EX1.36
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.36
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.36')
-rw-r--r--1319/CH1/EX1.36/1_36.sce36
1 files changed, 36 insertions, 0 deletions
diff --git a/1319/CH1/EX1.36/1_36.sce b/1319/CH1/EX1.36/1_36.sce
new file mode 100644
index 000000000..0d45c8ee5
--- /dev/null
+++ b/1319/CH1/EX1.36/1_36.sce
@@ -0,0 +1,36 @@
+//Determine the resonant frequency and the source current
+
+clc;
+clear;
+
+L=0.24; // Inductance
+Rl=150;
+Rc=100;
+C=3*(10^-6); // Capacitance
+f=50;
+w=2*%pi*f;
+V=200; // Source voltage
+
+fs=1/(2*%pi*sqrt(L*C)); // Frequency at the time of series connection
+
+f0=fs*sqrt(((Rl^2)-(L/C))/((Rc^2)-(L/C)))// Resonant frequency
+
+//Taking voltage as the reference
+
+Xl=L*w; // Inductive reactance
+Xc=1/(C*w); // Capacitive reactance
+
+Ra=Rl+(%i*Xl); // Effective resistance of inductive branch
+Rb=Rc-(%i*Xc);// Effective resistance of capacitive branch
+
+Reff=Ra*Rb/(Ra+Rb); // Effective Resistance
+Tr=atand(imag(Reff)/real(Reff)); // Phase Angle
+
+I=V/Reff;// Source current
+Ti=atand(imag(I)/real(I))// Phase angle
+
+printf('The resonant frequency = %g Hz\n',f0)
+printf('The source current = %g/_%g A\n',abs(I),Ti)
+printf('The input impeadance = %g/_%g ohms\n',abs(Reff),Tr)
+
+