summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.10/3_10.sce
blob: a7903ea9a4a939a525465f48a05f169e2f3fee4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables

p = 1.7 * 10**-8             //Resistivity (in ohm-meter)
l = 2 * 150                  //Length (in meter)
R = 0.722                    //Resistance (in ohm)

//Calculation

A = p*l/R                    //Area of cross section (in metersquare)
d = (A * 4 / %pi)**0.5   //diameter of wire (in meter)

//Result

printf("\n  Diameter of the wire is :  %0.0f  mm.",d * 10**3)