summaryrefslogtreecommitdiff
path: root/3768/CH6/EX6.3/Ex6_3.sce
blob: 3586942dea4b509bfd1087fd1c5f631c930c8808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example number 6.3, Page number 117

clc;clear;
close;

//Variable declaration
rho=1.43*10**-8;    //resistivity(ohm m)
n=6.5*10**28;       //conduction electrons(per m**3)
e=1.6*10**-19;      //charge(c)
m=9.1*10**-34;      //mass(kg)
//Calculation
towr=m/(n*e**2*rho);     //relaxation time(sec)
//Result
printf("relaxation time is %.3e sec",towr)
//answer in the book varies due to rounding off errors