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