summaryrefslogtreecommitdiff
path: root/1964/CH12/EX12.2/ex12_2.sce
blob: 41f1166835f8c1486de7dfaffa6b7ae5ae4bf1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Chapter-12, Example 12.2, Page 341
//=============================================================================
clc
clear
//INPUT DATA
Vdc=24;//supply voltage in volts
Rl=500;//resistance in ohms
rf=50;//forward resistance in ohms
//CALCULATIONS
Idc=(Vdc)/(Rl);//average value of load current in A
Im=(%pi)*(Idc);//maximum value of load current in A
Vm=(Im)*(rf+Rl);//Maximum voltage required at input in volts
mprintf("Thus average current,maximum current and maximum voltage required are %g A,%g A and %2.2f V respectively",Idc,Im,Vm);
//=================================END OF PROGRAM======================================================================================================