summaryrefslogtreecommitdiff
path: root/3871/CH8/EX8.8/Ex8_8.sce
blob: 26999cb0151f2599a31d6aefabeb82e1af50e4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//===========================================================================
//chapter 8 example 8

clc;clear all;

//variable declaration
L     = 1;		//Load in kW
S     = 10.2;		//speed of the disc in rpm 
T1       = 12;		//time in hours
M    = 600;		//meter constant in revolutions per kWh

//calculations
T2     = T1*60;	//time in minutes
E      = L*T1;	//actual energy consumed in 12 hours in kWh
N     = S*T2;	//Revolutions made by the disc in 12 hours
E1     = N/(M);	//Energy consumption recorded by the meter 
e    = E1-E;		//error in kWh

//result
mprintf("error = %3.2f kWh more",e);