summaryrefslogtreecommitdiff
path: root/2360/CH5/EX5.5/ex5_5.sce
blob: ca72f9d643449535701ec354d4ae0f8249df6a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Exa 5.5
format('v',7);clc;clear;close;
// Given data'
R1 = 100;// in ohm
R2 = 1000;// in ohm
R3 = 200;// in ohm
R4 = 2000;// in ohm
Rg = 200;// in ohm
S = 12;// in mm/µA
R = 5;// in ohm
R4 = R4 + R;// in ohm
E = 10;// in V
// By Thevenin's equivalent
V_TH = E*( (R3/(R1+R3)) - (R4/(R2+R4)) );// in V
Req = ((R1*R3)/(R1+R3)) + ((R2*R4)/(R2+R4));// in ohm
Ig = abs(V_TH)/(Req+Rg);// in A
Ig = Ig * 10^6;// in µA
// S =D/I;
D = S*Ig;//deflection of the galvanomter  in mm
disp(D,"The deflection of the galvanomter in mm is");

// Note:In the book the calculated value of V_TH is not correct. Correct value of V_TH is -5.546312 mV not -5.213 mV, So there is some difference between coding and the answer of the book.