blob: c5508363f0b4dc18e6af6a831f85bee504bbac99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//Percentage error calculation in a wattmeter
clc;
clear;
//Rated Parameters
I=50;
V=230;
R=61;// No. of revolutions
t=37/3600; // Time in hours
C=520; // Normal Disc Speed
Pfl=I*V;// Power at full load
Ps=Pfl*t/1000; // Power Supplied in kWhr
Pr=R/C; //Power recorded in kWhr
err=(Ps-Pr)*100/Ps;
printf('The Percentage Error = %g percent slow \n',err)
|