diff options
Diffstat (limited to '3754/CH12/EX12.2/12_2.sce')
-rw-r--r-- | 3754/CH12/EX12.2/12_2.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/3754/CH12/EX12.2/12_2.sce b/3754/CH12/EX12.2/12_2.sce new file mode 100644 index 000000000..29041ac35 --- /dev/null +++ b/3754/CH12/EX12.2/12_2.sce @@ -0,0 +1,17 @@ +clear//
+
+//Variables
+
+VF = 0.22 //Forward voltage (in volts)
+T = 298.0 //Temperature (in kelvin)
+I0 = 10**-3 //Current (in Ampere)
+n = 1
+
+//Calculation
+
+VT = T/11600 //Volt equivalent of temperature (in volts)
+I = I0*(exp(VF/(n*VT))-1) //Diode Current (in Ampere)
+
+//Result
+
+printf("\n Diode current is %0.1f A.",I)
|