summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3630/CH2/EX2.1/Ex2_1.sce')
-rw-r--r--3630/CH2/EX2.1/Ex2_1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3630/CH2/EX2.1/Ex2_1.sce b/3630/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..ddb241300
--- /dev/null
+++ b/3630/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,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=");