blob: 356eed4801b8819c06676ffd5b39ea1651ae7e7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear//
//Variables
p = 14 * 10**-8 //Resistivity of gold (in ohm-meter)
alpha = 5.8 * 10**-4 //Temperature coefficient (in per degree celsius)
l = 3 //Length (in meter)
d = 13 * 10**-6 //diameter of wire
//Calculation
A = %pi * d * d / 4 //Area of cross-section (in metersquare)
R = p * l /A //Resistance of wire at 20 degree celsius(in ohm)
R1 = R*(1 + alpha*(200-20))
//Result
printf("\n Resistance of wire at 200 degree celsius is %0.1f ohm.",R1)
|