summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.9/Ex2_9.sce
blob: 1514e6f21fe05f16b8cea9c38f1ec92425c24757 (plain)
1
2
3
4
5
6
7
8
9
clc;
//ex2.9
Vs=50; //Volt
Vd=0.7; //volt
RL=200; //ohm
If=(Vs-Vd)/RL;  //Ampere//forward current in the circuit
Io=(20/100)*If+If; //Ampere//Average forward current rating 20% greater than calculated value of If
disp('mAmp',If*1000,"If="); //The answers vary due to round off error
disp('mAmp',Io*1000,"Io=") //The answers vary due to round off error