summaryrefslogtreecommitdiff
path: root/2198/CH2/EX2.7.1/Ex2_7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2198/CH2/EX2.7.1/Ex2_7_1.sce')
-rwxr-xr-x2198/CH2/EX2.7.1/Ex2_7_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2198/CH2/EX2.7.1/Ex2_7_1.sce b/2198/CH2/EX2.7.1/Ex2_7_1.sce
new file mode 100755
index 000000000..ba3bca495
--- /dev/null
+++ b/2198/CH2/EX2.7.1/Ex2_7_1.sce
@@ -0,0 +1,13 @@
+//Ex 2.7.1
+clc;clear;close;
+format('v',6);
+
+//Given :
+Vgamma=0.6;//volt
+rf=12;//ohm
+V=5;//volts
+R=1;//kohm
+IF=(V-Vgamma)/(R*1000+rf);//A
+disp(IF*1000,"Diode current in mA :");
+VF=Vgamma+IF*rf;//volts
+disp(VF,"Diode voltage in volts :");