summaryrefslogtreecommitdiff
path: root/2438/CH6/EX6.3/Ex6_3.sce
blob: 34a47fcc2e091ed37aff3adced9a59e4c8583f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//==========================================================================
// chapter 6 example 3

clc;
clear;

//input data
 t1         = 20;                // temperature in °C
 alpha      = 5*10^-3;          //average  temperature coefficient at 20°C 
 R1         = 8;               //resistance in ohm
 R2         = 140;            //resistaance in ohm
 
 
//calculation
 t2     = t1+((R2-R1)/(R1*alpha));       //temperature in C
 
//result
 mprintf('Hence temperature under normal condition is %3.2f°C\n',t2);

//============================================================================