summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.1/Ex2_1.sce
blob: ddb2413004ca42df95fdea9aeef19884db4109ee (plain)
1
2
3
4
5
6
7
8
9
10
clc;
//ex2.1
R1=1000; //kohm;
VS=5; //Volt//voltage across voltage source
IT=0; //Ampere; because diode in reverse bias and does not allow conduction through diode
VD1=VS-(IT*R1); //apply kvl in the circuit
VR1=VD1-VS; //apply kvl in the circuit
disp( 'Volt',VD1*1,"VD1=");
disp( 'Ampere',IT*1,"IT=");
disp( 'Volt',VR1*1,"VR1=");