summaryrefslogtreecommitdiff
path: root/165/CH4/EX4.23/ex4_23.sce
blob: c9e02a357331ef2d2fbf3d33a9bb26f638be1daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)