blob: 703eeae3248232968e123c8cce859de477cb047c (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 20.9
V_rms=120;//Rms Voltage (V)
P_ave=60;//Average power (W)
V_0=sqrt(2)*V_rms;//Peak voltage (V)
printf('a.Peak voltage = %0.1f V',V_0)
P_0=2*P_ave;//Peak power consumption rate, equation got after derivation (W)
printf('\nb.Peak power consumption rate = %0.1f W',P_0)
//Answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|