blob: 007dc9bde4bcef3d8b034d873450f232686222fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
Pcdc = 10.0 //dc power (in watt)
ne = 0.32 //efficiency
//Calculation
Poac = ne * Pcdc / (1 - ne) //a.c. power output (in watt)
//Result
printf("\n The a.c. power output is %0.1f W.",Poac)
|