summaryrefslogtreecommitdiff
path: root/3556/CH4/EX4.18/Ex4_18.sce
blob: 2142dd44338b038407b250c7b96099e72d6c9dde (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
29
30
31
32
33
34
35
36
37
38
39
clc
// Fundamental of Electric Circuit 
// Charles K. Alexander and  Matthew N.O Sadiku  
// Mc Graw Hill of New York 
// 5th Edition 

// Part 1    :  DC Circuits 
// Chapter 4 :  Circuit Theorems
// Example 4 - 18

clear; clc; close; 
//
// Given data
Vs  =  220.0000; 
R1  = 1000.0000;   
R3  = 3000.0000;  
R4  =  400.0000; 
R6  =  600.0000;  
Rm  =   40.0000;  
//
// Calculations Rp1
Rp1 = (R1*R3)/(R1 + R3);             
// Calculations Rp2 
Rp2 = (R4*R6)/(R4 + R6);             
// Calculations Rs1  
Rth = Rp1 + Rp2                    
// Calculation Vth 
V1  = (R1/(R1 + R3))*Vs;            
V2  = (R6/(R4+R6))*Vs;              
Vth = V1 -  V2;                      
// Calculation IG
IG = Vth/(Rth + Rm)                 
//
// Display the result
disp("Example 4-18 Solution : ");
printf(" \n IG  = Current Through The Galvanometer      = %.3f mA",IG*1000)