diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1445/CH2/EX2.22 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1445/CH2/EX2.22')
-rw-r--r-- | 1445/CH2/EX2.22/Ex2_22.sce | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/1445/CH2/EX2.22/Ex2_22.sce b/1445/CH2/EX2.22/Ex2_22.sce index 5a3d218e3..992d68318 100644 --- a/1445/CH2/EX2.22/Ex2_22.sce +++ b/1445/CH2/EX2.22/Ex2_22.sce @@ -1,39 +1,33 @@ //CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT -//Example 22 // read it as example 21 in the book on page 2.75 +//Example 22 (mentioned as 'example 21' in the book) +clc; disp("CHAPTER 2"); disp("EXAMPLE 22"); //VARIABLE INITIALIZATION L=0.1 //in Henry -C=8 //in mf, multiply by 10^-6 to convert to f -R=10 //in ohms +C=8*10^-6 //in Farad +R=10 //in Ohms //SOLUTION //solution (i) -//Resonance frequency for a series RLC circuitf = 1/2.π.sqrt(LC) -fr=1/(2*%pi*sqrt(L*C*10^-6)); +fr=1/(2*%pi*sqrt(L*C)); //resonant frequency disp("SOLUTION (i)"); -disp(sprintf("For series circuit,Resonant frquency is %3.2f Hz", fr)); +disp(sprintf("For series circuit, resonant frquency is %3f Hz", fr)); disp(" "); //solution (ii) -//Q-factor is Q=w.L/R= 2.π,fr.L/R w=2*%pi*fr; Q=w*L/R; disp("SOLUTION (ii)"); -disp(sprintf("The Q-factor at resonance is %3.2f kΩ", Q)); -// +disp(sprintf("The Q-factor at resonance is %3f kΩ", Q)); + //solution (iii) -//Bandwidth, BW, (f2-f1)=R/(2.π.L), where f1,f2 half power frequencies -//f1=fr-BW/2 -//f2=fr+BW/2 bw=R/(2*%pi*L); -f1=fr-bw/2; -f2=fr+bw/2; +f1=fr+bw/2; disp("SOLUTION (iii)"); -disp(sprintf("half frequency 1 is %3.2f Hz", f1)); -disp(sprintf("half frequency 2 is %3.2f Hz", f2));// -// +disp(sprintf("Half power frequencies are %3f Hz and %3f Hz", f1,fr)); + //END |