summaryrefslogtreecommitdiff
path: root/1826/CH7/EX7.10/ex7_10.sce
blob: 9ed6cf25d42f646f275f55f07181054623f3707d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example 7.10, page no-166
clear
clc
rho=1.6*10^-8 //Ohm-m
e=1.6*10^-19//C
fe=5.5*e//J
avg=6.023*10^23
d=1.05*10^4//density
wt=107.9*10^-3//atomic weight
m=9.1*10^-31//kg
c=3*10^8//m/s
sig=1/rho
n=avg*d/wt
t=sig*m/(n*e^2)
printf("\nThe conductivity of silver piece is %.2f*10^7 per Ohm-m\n\nThe relaxation time is %.2f*10^-14 s",sig*10^-7,t*10^14)
lam=c*t
vd=sig*100/(n*e)
printf("\n\nThe driftt velocityy of electrons in the silver piece is %.2f m/s",vd)