From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 1445/CH4/EX4.9/ch4_ex_9.sce | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 1445/CH4/EX4.9/ch4_ex_9.sce (limited to '1445/CH4/EX4.9/ch4_ex_9.sce') diff --git a/1445/CH4/EX4.9/ch4_ex_9.sce b/1445/CH4/EX4.9/ch4_ex_9.sce new file mode 100644 index 000000000..4699a6038 --- /dev/null +++ b/1445/CH4/EX4.9/ch4_ex_9.sce @@ -0,0 +1,28 @@ +//CHAPTER 4- MEASURING INSTRUMENTS +//Example 9 + +disp("CHAPTER 4"); +disp("EXAMPLE 9"); + +//VARIABLE INITIALIZATION +I=50; //in Amperes +v=230; //in Volts +rev=61; //revolutions +t=37/3600; //from seconds to hours +m_c=500; //in rev/kwh +pow_fact=1; //since load is purely resistive + +//SOLUTION +E1=(v*I*t*pow_fact)/1000; //energy consumed in 37 seconds +E2=rev/m_c; +err=(E2-E1)/E1; +err=err*100; //percentage error +disp(sprintf("The percentage error is %f %%",err)); +if(err<0) then +disp("The negative sign indicates that the meter will run slow"); +end + +//END + + + -- cgit