diff options
Diffstat (limited to '2360/CH2/EX2.10/ex2_10.sce')
-rwxr-xr-x | 2360/CH2/EX2.10/ex2_10.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2360/CH2/EX2.10/ex2_10.sce b/2360/CH2/EX2.10/ex2_10.sce new file mode 100755 index 000000000..4ca2361bd --- /dev/null +++ b/2360/CH2/EX2.10/ex2_10.sce @@ -0,0 +1,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)+" Ω")
+
|