summaryrefslogtreecommitdiff
path: root/1511/CH2/EX2.40/ex2_40.sce
diff options
context:
space:
mode:
Diffstat (limited to '1511/CH2/EX2.40/ex2_40.sce')
-rwxr-xr-x1511/CH2/EX2.40/ex2_40.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1511/CH2/EX2.40/ex2_40.sce b/1511/CH2/EX2.40/ex2_40.sce
new file mode 100755
index 000000000..21228a842
--- /dev/null
+++ b/1511/CH2/EX2.40/ex2_40.sce
@@ -0,0 +1,10 @@
+// Example 2.40 page no-127
+clear
+clc
+
+T=301.6
+vt=T*1000/11600
+vf=50 //mV
+vr=-50 //mV
+k=(%e^(vf/vt)-1)/(%e^(vr/vt)-1)
+printf("\nratio=%.2f\nNegative sign is oecause, the direction of \ncurrent is opposite when the diode is reverse biased",k)