blob: bcb61442bd49e1fd3915ceef8e9ad4a43b800bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Exa 1.22
clc;
clear;
// Given
// A sine wave AC input
// Solution
printf('For a square wave, the form factor is 1.0, that is, the average and rms value are same \n');
printf(' For a sine wave, the form factor is 1.1, that is, the rms is 1.11 times the average \n');
printf(' Since the meter is calibrated for a sine wave, for a 1.0 V rms value of square wave, it indicates 1.11 V \n');
FFsq = 1.0;
FFsi = 1.11;
Perror = 100*(FFsi-FFsq)/FFsq;
printf(' The percentage error in the meter indication = %d percent \n',Perror);
|