summaryrefslogtreecommitdiff
path: root/1538/CH18/EX18.4/Ex18_4.sce
blob: ee233676d04d73c4779f86603774745afb8af264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//example-18.4
//page no-547
//given
//resistance of wire
R=21  //ohm
//length of wire
l=200  //m
//diameter of wire
d=0.44*10^-3  //m
//area of cross section of wire
A=(%pi)/4*d^2  //m^2
//as we know that 
//R=rho*l/A
//so
rho=R*A/l  //ohm m
printf ("the specific resistance of wire is %e ohm m",rho)