summaryrefslogtreecommitdiff
path: root/1445/CH2/EX2.23/ch2_ex_23.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1445/CH2/EX2.23/ch2_ex_23.sce
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 '1445/CH2/EX2.23/ch2_ex_23.sce')
-rw-r--r--1445/CH2/EX2.23/ch2_ex_23.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/1445/CH2/EX2.23/ch2_ex_23.sce b/1445/CH2/EX2.23/ch2_ex_23.sce
new file mode 100644
index 000000000..e84c47176
--- /dev/null
+++ b/1445/CH2/EX2.23/ch2_ex_23.sce
@@ -0,0 +1,34 @@
+//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT
+//Example 22 // read it as example 22 in the book on page 2.76
+
+disp("CHAPTER 2");
+disp("EXAMPLE 23");
+
+//VARIABLE INITIALIZATION
+A=100 //Amplitude in Amps
+f=50 //frquency in Hz
+t1=1/600 //sec after wave becomes zero again
+a1=86.6 //amplitude at some time t after start
+//SOLUTION
+
+//solution (a)
+//RAmplitude at 1/600 second after it becomes zero
+w=f*2*%pi; //angular speed
+hp=1/(2*f); //half period, the point where sine beomes zero again after origin
+t=hp+t1;
+a2=A*sin(w*t);
+disp("SOLUTION (a)");
+disp(sprintf("Amplitude after 1/600 sec is %3f A", a2));
+disp(" ");
+//solution (b)
+//since A=A0.sinwt, t=asin(A/A0)/w
+t2=(asin(a1/A))/w;
+disp("SOLUTION (b)");
+disp(sprintf("The time at which amp would be %fis %3f sec", a1,t2));
+//
+//solution (iii)
+//Bandwidth (f2-f1)=R/(2.π.L), f1,f2 half power frequencies
+//
+//END
+
+