summaryrefslogtreecommitdiff
path: root/3556/CH4/EX4.3/Ex4_3.sce
blob: 405bbd380908c235e3e10686b54e2f28745fb496 (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
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 - 3

clear; clc; close; 
//
// Given data
R1   =   8.00000
R2   =   4.0000;
Vs   =   6.0000;  
Is   =   3.0000;
//
// Calculations V4 for Vs = 6 Volt 
I1   = Vs/(R1+R2);
V1   = R2*I1;
// Calculations V4 for Is = 3 Ampere 
I3   = (R1/(R1+R2))*Is;
V2   = R2*I3;
// Calcucations Total V4
V4   = V1 + V2; 
// Display the result
disp("Example 4-3 Solution : ");
printf(" \n V4     = Voltage For R 4 ohm                  = %.3f Volt",V4)