summaryrefslogtreecommitdiff
path: root/3871/CH5/EX5.27/Ex5_27.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH5/EX5.27/Ex5_27.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH5/EX5.27/Ex5_27.sce')
-rw-r--r--3871/CH5/EX5.27/Ex5_27.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/3871/CH5/EX5.27/Ex5_27.sce b/3871/CH5/EX5.27/Ex5_27.sce
new file mode 100644
index 000000000..63e5bf63a
--- /dev/null
+++ b/3871/CH5/EX5.27/Ex5_27.sce
@@ -0,0 +1,32 @@
+//=============================================================
+//Chapter 5 example 27
+
+clc;
+clear all;
+
+
+//variable declaration
+//V = (5*sin(theta))+(0.6*sin(3*theta))\
+
+a = 5;
+b = 0.6;
+rd = 35; //resistance in Ω
+ra = 30; //resistance in Ω
+
+//calculations
+R = (3*rd)+ra; //resitance in Ω
+//i = v/R
+//i = (5*sin(theta)/R)+(0.6*(sin(3*theta)/R))
+x1 = a/R;
+y1 =b/R;
+//i = (x1*sin(theta))+(y1*sin(3*theta))
+//Iav = ((1/%pi)*{(integral(i*dtheta))}(0-%pi)))
+//Iav = (1/%pi)*((0.5*sin(theta))-(0.006/3)*(cos(3*theta)))
+//solving above equation we get (1/%pi)*(1)
+p = (-0.05*((cos((180*%pi/180))-cos(0))))-((0.002*((cos(3*180*%pi/180))-cos(3*0))));
+z = (1/%pi)*p; //average value in mA
+
+
+//result
+mprintf("average value reading of PMMC ammeter = %3.1f mA",(z*10^3));
+