summaryrefslogtreecommitdiff
path: root/1445/CH2/EX2.43/ch2_ex_43.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.43/ch2_ex_43.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.43/ch2_ex_43.sce')
-rw-r--r--1445/CH2/EX2.43/ch2_ex_43.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1445/CH2/EX2.43/ch2_ex_43.sce b/1445/CH2/EX2.43/ch2_ex_43.sce
new file mode 100644
index 000000000..42fe8c0cc
--- /dev/null
+++ b/1445/CH2/EX2.43/ch2_ex_43.sce
@@ -0,0 +1,21 @@
+//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT
+//Example 43 // read it as example 42 in the book on page 2.102
+
+disp("CHAPTER 2");
+disp("EXAMPLE 43");
+
+//VARIABLE INITIALIZATION
+I=5; // max amplitude of wave in Amp
+f=50; //Hz
+//wave for is to be obtained by adding the two waves
+//i=5+5.sin(wt)=5+5.sin(theta)
+//
+//SOLUTION
+Iav=(1/(2*%pi))*integrate('5+5*sin(th)', 'th',0,2*%pi);
+Ims=(1/(2*%pi))*integrate('(5+5*sin(th))^2', 'th',0,2*%pi);
+//
+disp(sprintf("The average value of resultant current is %f Amp", Iav));
+disp(sprintf("The RMS value of resultant current is %f Amp", sqrt(Ims)));
+disp(" ");
+//
+//END