summaryrefslogtreecommitdiff
path: root/1730/CH2/EX2.21/Exa2_21.sce
blob: 4ddfb425fea15fe9863c20b5ad9b47065a9263a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Exa2.21
clc;
clear;
close;
//given data
R=95.5;//in ohm
l=1;//in meter
d=0.08;//in mm
d=d*10^-3;//in meter
a=(%pi*d^2)/4;
//Formula R=rho*l/a
rho=R*a/l;
disp("Resistance of the wire material is : "+string(rho)+" ohm-meter")