diff options
Diffstat (limited to '3754/CH12/EX12.1/12_1.sce')
-rw-r--r-- | 3754/CH12/EX12.1/12_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3754/CH12/EX12.1/12_1.sce b/3754/CH12/EX12.1/12_1.sce new file mode 100644 index 000000000..68e99e189 --- /dev/null +++ b/3754/CH12/EX12.1/12_1.sce @@ -0,0 +1,14 @@ +clear//
+
+//Variables
+
+I0 = 2 * 10**-7 //Current (in Ampere)
+VF = 0.1 //Forward voltage (in volts)
+
+//Calculation
+
+I = I0 * (exp(40*VF)-1) //Current through diode (in Ampere)
+
+//Result
+
+printf("\n Current throrough diode is %0.2f micro-Ampere.",I*10**6)
|