summaryrefslogtreecommitdiff
path: root/174/CH1/EX1.13/example1_13.sce
blob: 54107268f4fe6d377325a0c8a1b9504c5e61aa26 (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
// To find the maximum error
// Modern Electronic Instrumentation And Measurement Techniques
// By Albert D. Helfrick, William D. Cooper
// First Edition Second Impression, 2009
// Dorling Kindersly Pvt. Ltd. India
// Example 1-13 in Page 15


clear; clc; close;

// Given data
// For the given tolerence of 0.1% 
// highest value of resistor is 1.001 times the nominal value
// lowest value of resistor is 0.999 times the nominal value

//Calculations
V_out_max = 1.001 * 1.001/ 0.999;
V_out_min = 0.999 * 0.999/ 1.003;
total_var = 0.1 * 3; // total variation of the resultant voltage is sum of tolerences
printf("The total variation of the resultant voltage = +/- %0.1f %%",total_var);

//Result
// The total variation of the resultant voltage = +/- 0.3 %