blob: 1c278b462db70892570e9a2dd4b11f5def32b9ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//
//
//
//Variable declaration
rho=1.54*10**-8 //resistivity(ohm m)
n=5.8*10**28 //number of electrons
e=1.602*10**-19 //charge(c)
m=9.11*10**-31 //mass(kg)
//Calculation
tow=m/(n*e**2*rho) //relaxation time(s)
//Result
printf("\n relaxation time is %0.3f *10**-15 s",tow*10**15)
printf("\n answer in the book varies due to rounding off errors")
|