summaryrefslogtreecommitdiff
path: root/3710/CH4/EX4.1/Ex4_1.sce
blob: 02a78349442ab1355816b8251817c4cbe3446a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 4.1, Page Number 131
//The Function fpround(dependency) is used to round a floating point number x to n decimal places
clc;

kt=0.025 
E=0.4 //(The difference between Ec & Ed)
Q=(10**8) 

j=E/kt
p=Q*exp(-j) //p is the required probability
p=fpround(p,2)
Q1=1/p
Q1=fpround(Q1,2)
mprintf("The Probability of Escape per second of the trapped electron:%.2f/s\n",p)
mprintf(" The Luminescence Lifetime is:%.2fs",Q1)