summaryrefslogtreecommitdiff
path: root/3507/CH9/EX9.12/Ex9_12.sce
blob: e3d15495095539b52363623f869d7851d2a0c84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter9
//example9.12
//page153

Vdc=50 // V
rf=25 // ohm
Rl=800 // ohm

// Vdc=Idc*Rl and Idc=Im/%pi so
// Vdc=Im*Rl/%pi
// but Im=Vm/(rf+Rl) so 
// Vdc=Vm*Rl/(%pi*(rf+Rl))
// making Vm as subject we get

Vm=Vdc*%pi*(rf+Rl)/Rl

printf("ac voltage required = %.1f V \n",Vm)