blob: 33dc7f33a3b9fe11027d2fa30daa5d997944a7e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Problem 15.24: An instantaneous current, i = 250 sin wt mA flows through a pure resistance of 5 kohm. Find the power dissipated in the resistor.
//initializing the variables:
R = 5000; // in ohms
Imax = 0.250; // in Amperes
//calculation:
Irms = 0.707*Imax
P = Irms*Irms*R
printf("\n\n Result \n\n")
printf("\n Power, P = %.1f Watts",P)
|