summaryrefslogtreecommitdiff
path: root/3775/CH2/EX2.6/Ex2_6.sce
blob: 7da826e213a92be6171cbf3bf11104119c47e79b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Ex 2.6 page 70

clc;
clear;
close;

VS=3;// kV
IS=750;// A

VD=800;// V
ID=175;// A
dr=30/100;// de-rating factor
IB=8;//mA
delQ=30;// u Coulomb
// dr = 1-IS/np*ID
np = round(IS/(1-dr)/(ID)) ; // no. of parallel string
ns = round(VS*1000/(1-dr)/(VD)) ; // no. of series string
R=(ns*VD-VS*1000)/(ns-1)/(IB/1000)/1000;//kohm
C=(ns-1)*delQ*10**-6/(ns*VD-VS*1000)
printf('Value of R = %.2f kohm',R)
printf('\n Value of C = %.2e F',C)