summaryrefslogtreecommitdiff
path: root/3651/CH4/EX4.4/4.sce
blob: 3e98c58dfc52e23cdfd54264aeb89ba50520e773 (plain)
1
2
3
4
5
6
7
8
9
//Variable declaration
kT=1;
E_EF=1;

//Calculations
p_E=1/(1+exp(E_EF/kT)) 
        
//Result        
printf('p(E) =%0.3f   \n ',(p_E))