summaryrefslogtreecommitdiff
path: root/1595/CH2/EX2.9/ex2_9.sce
blob: bf1cf630ffce180ab86f5fa191e104fc1fd64b85 (plain)
1
2
3
4
5
6
7
8
9
10
// Amplitude Modulation-Transmission : example 2-9 : pg(100)
a=1;
b=0.03;
c=0.05;
d=0.02;
e=0.04;
x=sqrt((b^2+c^2+d^2+e^2)/a^2);
y=x*100;
printf("\nTHD = sqrt((V2^2)+(V3^3)+(V4^2)+(V5^2)/(V1^2)) \nTHD = %.5f",x);
printf("\nTHD = %.2f percent",y);//total harmonic distortion