summaryrefslogtreecommitdiff
path: root/2345/CH2/EX2.18/Ex2_18.sce
blob: 7e95c93ba8aa65936eedf614c6733c4f73594037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Finding ratios
//Example 2.18(pg. 30)
clc
clear
sAl=2.85*(10^-6),sCu=1.7*(10^-6)//specific resistance in ohm-cm
gAl=2.71,gCu=8.89//specific gravity 
cAl=5000,cCu=10000//cost per tonne
//P=V^2/R, power is same for both so resistance must also be same
//so R=(p*l)/(pi*d^2)=(p*l)/(pi*d'^2)
Kd=sqrt(sAl/sCu)//Kd=d/d'
printf('Thus the ratio of diameters is %3.3f \n',Kd)
Km=(Kd^2)*(gAl/gCu)
printf('Thus the ratio of weights is %3.4f \n',Km)
Kc=Km*(cAl/cCu)
printf('Thus the ratio of costs is %3.4f',Kc)