blob: b45eadd92986c3f38c286ada3bfa9dcdee66c7cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Example 2.2. // error
clc;
clear;
close;
//given data :
m=150;
T=3;
Kf_sin=1.11;//Form factor of sine wave
//e=50*t
Erms=sqrt(1/T*integrate('(50*t)^2','t',0,T));
Eav=(1/T*integrate('(50*t)','t',0,T));
kf=Erms/Eav;
R=Kf_sin/kf; // ratio of the two form factors
Pe=(R-1/1)*100;
disp(Pe,"the percentage error,Pe(%) = ")
|