summaryrefslogtreecommitdiff
path: root/3507/CH4/EX4.4/Ex4_4.sce
blob: d9adac61631e71041e63a42731d9fea8839d6d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//chapter4
//example4.4
//page74

Vs=300 // V
rp=500 // ohm
Rl=2000 // ohm
Vm=Vs*2^0.5 // in V
Im=Vm/(rp+Rl) // A
Idc=2*Im/%pi // A
Pdc=Idc^2*Rl // W
Irms=Im/2^0.5 //A
Pac=Irms^2*(rp+Rl) // W
efficiency=(Pdc/Pac)*100

printf("dc power output = %.3f W \n",Pdc)
printf("ac power input = %.3f W \n",Pac)
printf("efficiency = %.2f percentage",efficiency)