1 2 3 4 5 6 7 8 9 10 11 12
//chapter19 //example19.7 //page422 Pc=500 // W m=1 Ps=0.5*m^2*Pc Pt=Pc+Ps printf("sideband power = %.3f W \n",Ps) printf("power of modulated wave = %.3f W \n",Pt)