summaryrefslogtreecommitdiff
path: root/1184/CH2/EX2.26/Ex2_26.sce
blob: 39ca7c4fde442671f5fbf8cdfc394a03691355ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 2-26,Page No - 82

clear
clc

Vpeak =3
f=48*10^3

fifth_harmonic = 5*f
Vrms=(4/3.14)*(3/5)*0.707

printf('The frequency of the fifth harmonic is %.1f Khz',fifth_harmonic/10^3)
printf('\n The RMS voltage of the fifth harmonic is %.2f',Vrms)