blob: aa8087ac5e9485003dafaa077dcdde99909b8b00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clear
//
//
//
//Variable declaration
J=10^5; //current density(amp/m^2)
T=300; //temperature(K)
eta=1;
J0=250*10^-3; //saturation current density(A/m^2)
//Calculations
VT=T/11600;
x=(J/J0)+1;
V=log(x)*VT; //voltage applied(V)
//Result
printf("\n voltage applied is %0.4f V",V)
|