blob: 301e16ada5f65b9628fbb26c570f80c42f6fe72c (
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
|
//===========================================================================
//chapter 6 example 10
clc;clear all;
//variable declaration
alpha0 = 0.0043;
t1 = 25; //temperature in °C
t2 = 45; //temperature in °C
e = 1.1; //percentage error in %
//calculations
R1 = ((1+(alpha0*t2))/(1+(alpha0*t2)));
//r1 = R1*r
//I2 = V/r1+R
//e = (I1-I2)/100
//I2 = 0.989I1
//I2 = V/1.0776r+R
//I1 = V/R+r
//V/(1.0776r+R) = 0.989V/R+r
//R/r = 5.96
x = 5.96;
//result
mprintf("R/r= %3.2f",x);
|