blob: b2215336bf3ce6734d026d222881e27ca7b05e97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//===========================================================================
//chapter 8 example 9
clc;clear all;
//variable declaration
V = 240; //voltage in V
I = 8; //current in A
T = 1; //time in minutes
x =0.6; //power factor
M = 600; //meter constant in revolutions per kWh
//calculations
E = (V*I*(T/(60))*x)/(1000); //Energy consumed 1 minute
S = E*M; //speed of the disc in rev/minute
//result
mprintf("speed of the disc = %3.2f rev/minute",S);
|