summaryrefslogtreecommitdiff
path: root/24/CH42/EX42.1/Example42_1.sce
blob: 7e08a4f459bd64eeba4d0da9fbd096b178e55d86 (plain)
1
2
3
4
5
6
7
8
9
10
//Given that
T = 300  //in K
e = 1.6*10^-19  //in coulomb
Eg = 5.5*e  //in J
K = 8.62*10^-5*e  //in J/K

//Sample Problem 42-1
printf("**Sample Problem 42-1**\n")
P = %e^(-Eg/(K*T))
printf("The probability is equal to %e", P)