summaryrefslogtreecommitdiff
path: root/929/CH2/EX2.11.b/Example2_11_b.sce
blob: 49387286049da99cb0831fbb59557ada446046dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Example 2.11(b)

clear;

clc;

R0=100;

alpha=0.00392;

T1=25;

R1=R0*(1+alpha*T1);

printf("R(25 deg Celsius)=%.2f ohms",R1);

T2=100;

R2=R0*(1+alpha*T2);

printf("\nR(100 deg Celsius)=%.2f ohms",R2);

T3=-15;

R3=R0*(1+alpha*T3);

printf("\nR(-15 deg Celsius)=%.2f ohms",R3);