blob: dfbcea5c31eec3d26188596c4573c50a926c9143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//===========================================================================
//chapter 8 example 1
clc;clear all;
//variable declaration
P = 360; //power in W
t = 100; //time in seconds
n = 10; //revolutions
//calculations
E = (P*(t/(3600)))/(1000); //energy consumed in kWh
M = n/(E); //meter constant in revolutions/KWh
//result
mprintf("meter constant in revolutions/KWh = %3.2f ",M);
|