summaryrefslogtreecommitdiff
path: root/165/CH4/EX4.23/ex4_23.sce
diff options
context:
space:
mode:
Diffstat (limited to '165/CH4/EX4.23/ex4_23.sce')
-rw-r--r--165/CH4/EX4.23/ex4_23.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/165/CH4/EX4.23/ex4_23.sce b/165/CH4/EX4.23/ex4_23.sce
new file mode 100644
index 000000000..c9e02a357
--- /dev/null
+++ b/165/CH4/EX4.23/ex4_23.sce
@@ -0,0 +1,16 @@
+//Example 4.23
+close;
+clc;
+
+E=3; //in volts
+Im=1*10^-3; //in amperes
+//After aging battery sterngth
+E1=2.8; //in volts
+
+Rt=E/Im; //Initial internal resistence
+Rt1=E1/Im; //Internal resistence after battery aging
+e=(Rt-Rt1)*100/Rt; //% error in reading
+
+printf('\nTotal internal resistence of ohmmeter = %.2f k ohm\n',Rt/1000)
+printf('\nInternal resistence of ohmmeter after battery decay = %.2f k ohm\n',Rt1/1000)
+printf('\nPercentage error in reading = %.2f percent\n',e) \ No newline at end of file