summaryrefslogtreecommitdiff
path: root/3871/CH5/EX5.22/Ex5_22.sce
blob: 8f2d0168db5c53a54974f2b4ea7e9dc14ea26f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===========================================================================
//chapter 5 example 22

clc;
clear all;

//variable declaration
 Irms           = 32;		//measured reading reading in A
 Ir         = 30;           //rectifier ammeter reading in A
Ks          = 1.11;		//form factor for sinusoidal wave

//calculations
Iav     = Ir/(Ks);		//average value of current under measurement in A
e          = ((Irms)/(Iav));		//percentage errror in %

//result

mprintf("form factor = %3.3f ",e);