summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.8/3_8.sci
blob: 491ac18c2658523758668e1d59bede4d3def4d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Calculate the guaranteed values of the resistance
clc;
R1=100;
R1_le_perunit=0.5; // R1_le_perunit indicates dR1/R1 = 0.5%
R2=1000;
R2_le_perunit=0.5;
R3=842;
R3_le_perunit=0.5;
Rx=R2*R3/R1;
disp(Rx,'Value of resistance (ohm)=')
Rx_le_perunit=R1_le_perunit+R2_le_perunit+R3_le_perunit;

disp(Rx_le_perunit,'Limiting Value of resistance per unit (dRx/Rx)=')
Er_Le=Rx_le_perunit*Rx/100;
disp(Er_Le,'Limiting Value of resistance (ohm)=+/-')
disp('Guarantee value of the resistance (ohm)=')
G1=Rx+Er_Le;
G2=Rx-Er_Le;
disp(G1,G2,'')