blob: 78d593d1db78d3ff29d21acfdaefc2ba194be34c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Variable declaration
Vt=0.0258
mu_n=1300
mu_p=500
//Calculations
Dn=Vt*mu_n
Dp=Vt*mu_p
//Result
printf('Dn = %0.3f cm**2 s**-1 \n',Dn)
printf('Dp = %0.3f cm**2 s**-1 \n',Dp)
|