From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3871/CH5/EX5.27/Ex5_27.sce | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 3871/CH5/EX5.27/Ex5_27.sce (limited to '3871/CH5/EX5.27/Ex5_27.sce') 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)); + -- cgit