summaryrefslogtreecommitdiff
path: root/2345/CH2/EX2.8/Ex2_8.sce
blob: 506db58493c9a54bd656f9412de9c1a037ba50a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Finding resistance
//Example 2.8(pg. 24)
clc
clear
R20=50// resistance in ohms
T=60,t=20// temp in degree C
k0=0.00427//temp coefficient at zero degreeC
R0=R20/{1+(k0*t)}
printf('The value of Resistance at 0 degree C is %3.2f ohms \n',R0)
R60=R0*{1+(k0*T)}
printf('The value of Resistance at 60 degree C is %3.2f ohms',R60)