summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.14/3_14.sci
diff options
context:
space:
mode:
Diffstat (limited to '569/CH3/EX3.14/3_14.sci')
-rwxr-xr-x569/CH3/EX3.14/3_14.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/569/CH3/EX3.14/3_14.sci b/569/CH3/EX3.14/3_14.sci
new file mode 100755
index 000000000..310aadd98
--- /dev/null
+++ b/569/CH3/EX3.14/3_14.sci
@@ -0,0 +1,17 @@
+//calculate the total resistance, error of each register and fractional error of total resistance
+clc;
+R1=250;
+R2=500;
+R3=375;
+R_true=1/((1/R1)+(1/R2)+(1/R3));
+disp(R_true, 'True value of resistance(ohm)=')
+dR1= 0.025*R1;
+dR2=-0.36*R2;
+dR3=0.014*R3;
+R1_effective=R1+dR1;
+R2_effective=R2+dR2;
+R3_effective=R3+dR3;
+R_effective=1/((1/R1_effective)+(1/R2_effective)+(1/R3_effective));
+disp(R_effective, 'Effective value of resistance(ohm)=')
+Fractional_error=(R_true-R_effective)/R_true;
+disp(Fractional_error,'Fractional_error')