blob: 17a5275ad780fd09721c1248e68288cd74850553 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//chapter19
//example19.2
//page416
// figure is given in book for understanding purpose only.It is not required for solving the example as maximum and minimum peak voltages are given in the problem statement itself.
Vmax_pp=16 // mV
Vmin_pp=4 // mV
Vmax=Vmax_pp/2
Vmin=Vmin_pp/2
m=(Vmax-Vmin)/(Vmax+Vmin)
printf("modulation factor = %.3f \n",m)
|