summaryrefslogtreecommitdiff
path: root/3871/CH8/EX8.8
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH8/EX8.8')
-rw-r--r--3871/CH8/EX8.8/Ex8_8.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3871/CH8/EX8.8/Ex8_8.sce b/3871/CH8/EX8.8/Ex8_8.sce
new file mode 100644
index 000000000..26999cb01
--- /dev/null
+++ b/3871/CH8/EX8.8/Ex8_8.sce
@@ -0,0 +1,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);