summaryrefslogtreecommitdiff
path: root/1736/CH4/EX4.18/Ch04Ex18.sce
blob: d4f76bfcad22740876053b2e7181c2a4eb05f521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab Code Ex4.18: Page-134 (2006)
clc; clear;
// We have from Mattheissen rule, rho = rho_0 + alpha*T1
T1 = 300;   // Initial temperature, K
T2 = 1000;  // Final temperature, K
rho = 1e-06;    // Resistivity of the metal, ohm-m
delta_rho = 0.07*rho;      // Increase in resistivity of metal, ohm-m
alpha = delta_rho/(T2-T1);  // A constant, ohm-m/K
rho_0 = rho - alpha*T1;     // Resistivity at room temperature, ohm-m
printf("\nThe resistivity at room temperature = %4.2e ohm-m", rho);

// Result 
// The resistivity at room temperature = 1.00e-006 ohm-m