summaryrefslogtreecommitdiff
path: root/3755/CH9/EX9.4/Ex9_4.sce
blob: 493b866d02d3b51a9ba28f917b58757598ea9275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")