Q .Find Voltage across diode
Diode equation is : i=10-15(e30v -1)
Solution:
We do multiple source transforms and then write the nodal equation as
0.0001v+ 10-15(e30v -1) -0.001=0
Solving by Newton Rapson Method we get
Numerator = (0.0001*x)+ 10.^(-15)*(exp(30*x)-1) -0.001
Denominator =0.0001 + 30*(10.^(-15)*(exp(30*x)).
So solution after a number of iterations is : v= 0.9178
Number of Iterations = 8
Code:
x = 0;temp = 1;
count = 0;
while x~= temp
x = temp;
num = (0.0001*x)+ 10.^(-15)*(exp(30*x)-1) -0.001;
deno = 0.0001 + 30*(10.^(-15)*(exp(30*x)));
temp = x - (num/deno);
count = count+1;
p(count) = x;
end
plot(p);
title('convergence after multiple iterations');
fprintf('Number. of Iterations = '); disp(count);
fprintf('Answer =');disp(x);
http://www.ecircuitcenter.com/SpiceTopics/Non-Linear%20Analysis/Non-Linear%20Analysis.htm
ByAalap Khanolkar- 2016110027
Rahul Kelaskar* 2016110026





