blob: 4ca2361bda63ec6f8091835eb37082a18aab44c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Exa 2.10
format('v',7);clc;clear;close;
// Given data
R1= 100;//resistance in Ω
Re1= 0.1;//error in Ω
R2= 50;//resistance in Ω
Re2= 0.03;//error in Ω
R= R1+R2;//resistance in Ω
w= sqrt(Re1^2+Re2^2);
disp("For Series connection, R= "+string(R)+" ± "+string(w)+" Ω")
R= R1*R2/(R1+R2);// in Ω
del_RbyR1= ((R1+R2)*R2-R1*R2)/(R1+R2)^2;
del_RbyR2= ((R1+R2)*R1-R1*R2)/(R1+R2)^2;
w= sqrt(del_RbyR1^2*Re1^2+del_RbyR2^2*Re2^2);
disp("For Parallel connection, R= "+string(R)+" ± "+string(w)+" Ω")
|