blob: 44f02a11877ea84be44229fb53d6d6e41c76d875 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//===========================================================================
//chapter 6 example 14
clc;clear all;
//variable declaration
Rm =40; //resistance in Ω
Im = 1; //current in mA
I1 = 10; //current in mA
I2 = 20; //current in mA
I3 = 30; //current in mA
I4 = 40; //current in mA
I5 = 50; //current in mA
//calculations
R1 = Rm/(((I1/(Im)))-1);
R2 = (R1+Rm)/(((I2/(Im))));
R3 = (R1+Rm)/(((I3/(Im))));
R4 = (R1+Rm)/(((I4/(Im))));
R5 = (R1+Rm)/(((I5/(Im))));
r1 = R1-R2; //resistance in Ω
r2 = R2-R3; //resistance in Ω
r3 = R3-R4; //resistance in Ω
r4 = R4-R5; //resistance in Ω
r5 = R5; //resistance in Ω
//result
mprintf("resistance of various section of the ayrtons shunt are = %3.4f Ω , %3.4f Ω , %3.4f Ω, %3.4f Ω, %3.4f Ω ",r1,r2,r3,r4,r5);
|