summaryrefslogtreecommitdiff
path: root/226/CH21/EX21.5/example5_sce.sce
blob: 97999bb3a4cbc9f1345870a1415361482ae6c6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
//chapter 21
//example 21.5
//page 957
printf("\n")
printf("given")
Rc=1*10^3;I=10*10^-3;E=30;
R1=E/I -Rc
R1=1.8*10^3;//use standard value
disp(" when dark Rc=100Kohm")
Rc=100*10^3;
I=E/(R1+Rc)