blob: b2914ffa2243cff42d2010b680a6bcff908930db (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Chapter 10, Problem 6, figure 10.13
clc;
I=20; //current flows through a load
R=2; //load
r=0.01; //wattmeter coil resistance
P=I^2*R; //power dissipated in the load
Rt=R+r; //total resistance
P1=I^2*Rt; //wattmeter reading
printf("(a) Power dissipated in the load = %f W\n\n\n",P);
printf("(b) Wattmeter reading = %f W",P1);
|