blob: 63e05ce9187b5203d318809691250b5efcd4f3e6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
disp("Voc=k*log(Il/Is)");
k=0.026;//say k=K*T/q
Il=100*10^-3;
Is=1*10^-9;
Voc=k*log(Il/Is);
printf('\n The value of Voc is %1.2fV',Voc);
disp("P=(Il*V)-(Is*exp((V/k)-1))");
V=0.35;
P=(Il*V)-(Is*exp((V/k)-1));
printf('\n The Output power is %f*10^-4W',P*10^4);
|