summaryrefslogtreecommitdiff
path: root/3755/CH9/EX9.4/Ex9_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH9/EX9.4/Ex9_4.sce')
-rw-r--r--3755/CH9/EX9.4/Ex9_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3755/CH9/EX9.4/Ex9_4.sce b/3755/CH9/EX9.4/Ex9_4.sce
new file mode 100644
index 000000000..493b866d0
--- /dev/null
+++ b/3755/CH9/EX9.4/Ex9_4.sce
@@ -0,0 +1,20 @@
+clear
+//
+//
+//
+
+//Variable declaration
+I0=4*10^-6; //current(A)
+T=273+25; //temperature(K)
+V=0.15; //voltage(V)
+eta=1;
+
+//Calculations
+VT=T/11600;
+IF=I0*(exp(V/VT)-1); //forward current(A)
+IR=I0*(exp(-V/VT)-1); //reverse current(A)
+r=-IF/IR; //rectification ratio
+
+//Result
+printf("\n rectification ratio is %0.3f ",r)
+printf("\n answer in the book is wrong")