summaryrefslogtreecommitdiff
path: root/2045/CH2/EX2.8/Ex2_8.sce
blob: 93e116e84f1ba4a4cebdab00c8f9ec4d6d434bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
//pagenumber 104 example 8
clear
p=2;//watts
voltaf=900*10^-3;//volt
i1=p/voltaf;
r1=voltaf/i1;
disp("maximum forward current   =   "+string(i1)+"ampere");


disp("forward diode resistance   =   "+string(r1)+"ohm");