summaryrefslogtreecommitdiff
path: root/569/CH5/EX5.18/5_18.sci
blob: 4e56b65e29ff1faa78dc372a78f12e36576ab170 (plain)
1
2
3
4
5
6
7
8
9
10
// Calculate the resistance and the temperature
clc;
Rth0=100;
ath0=0.00392;
dth=65-25;
R65=Rth0*[1+ath0*dth];
disp(R65,'resistance at 65 degree C(ohm)=')

th={[(150/100)-1]/ath0}+25;
disp(th,'Temperature (degree C)')