Q. find voltage across diode
       Diode equation is : I=10^-20(e^15v -1)

solution:

we do multiple source transformation an then write the nodal equation as
       0.0005+10^-20(e^15v -1)-0.0005=0

 solving by newton Rapson method
numerator=(0.0005*x)+10^(-20)*(exp(15*x)-5)-00001

denominator=0.0005+ 15*(10^(-15)*(exp(20*x))

number of iteration = 8

code:

x=0
temp=1;
count=0;
while x~=temp
x=temp;
num=(0.0005*x)+10^(-20)*(exp(15*x)-5)-0.0001;
 dem=0.0005+ 15*(10^(-15)*(exp(20*x));
temp=x-(num/dem);
count=count+1;
p(count)=x;
end
title('convergene after multiple iteration');
fprint('number of iteration='); disp(count);
fprint('answer=');disp(x)



code and ckt by

ROHAN THAPE

RAHUL YADAV


Comments

Post a Comment