summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.19/3_19.sci
diff options
context:
space:
mode:
Diffstat (limited to '569/CH3/EX3.19/3_19.sci')
-rwxr-xr-x569/CH3/EX3.19/3_19.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/569/CH3/EX3.19/3_19.sci b/569/CH3/EX3.19/3_19.sci
new file mode 100755
index 000000000..2cfbfc533
--- /dev/null
+++ b/569/CH3/EX3.19/3_19.sci
@@ -0,0 +1,11 @@
+// Calculate apparent resistance, actual resistance and error
+clc;
+Et=40;
+It=800*10^-3;
+Rt=Et/It;
+disp(Rt,'apparent value of resistance (ohm)=')
+Rv=1000*150;
+Rx=Rt*Rv/(Rv-Rt);
+disp(Rx,'true value of resistance(ohm)')
+Er_percentage=[(Rt-Rx)/Rx]*100;
+disp(Er_percentage,'percentage error=') \ No newline at end of file