summaryrefslogtreecommitdiff
path: root/1388/CH7/EX7.30/7_30.sce
blob: f774493402fdb79d865b58e20b057682c9abbbad (plain)
1
2
3
4
5
6
7
8
9
10
clc
//initialisation of variables
c= 391
c1= 129
f= 1
k= -0.05915 //j/mol
//CALCULATIONS
E= (k/f)*log10(c1/c)
//RESULS
printf (' junction potential = %.4f volt',E)