1 2 3 4 5 6 7 8 9 10 11 12 13
clc// // // //Variable declaration kT=1; //assume E_Ef=kT; //Calculation FE=1/(1+exp(1)); //fermi function //Result printf("\n fermi function is %0.3f ",FE)