summaryrefslogtreecommitdiff
path: root/3754/CH12/EX12.5/12_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH12/EX12.5/12_5.sce')
-rw-r--r--3754/CH12/EX12.5/12_5.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3754/CH12/EX12.5/12_5.sce b/3754/CH12/EX12.5/12_5.sce
new file mode 100644
index 000000000..db9955c36
--- /dev/null
+++ b/3754/CH12/EX12.5/12_5.sce
@@ -0,0 +1,14 @@
+clear//
+
+//Variables
+
+rb = 2 //bulk resistance (in ohm)
+IF = 12 * 10**-3 //FOrward current (in Ampere)
+
+//Calculation
+
+VF = 0.6 + IF * rb //Voltage drop (in volts)
+
+//Result
+
+printf("\n Voltage drop across a silicon diode is %0.3f V.",VF)