diff options
Diffstat (limited to '3556/CH3')
-rw-r--r-- | 3556/CH3/EX3.1/Ex3_1.sce | 43 | ||||
-rw-r--r-- | 3556/CH3/EX3.12/Ex3_12.sce | 31 | ||||
-rw-r--r-- | 3556/CH3/EX3.2/Ex3_2.sce | 37 | ||||
-rw-r--r-- | 3556/CH3/EX3.4/Ex3_4.sce | 38 | ||||
-rw-r--r-- | 3556/CH3/EX3.5/Ex3_5.sce | 33 | ||||
-rw-r--r-- | 3556/CH3/EX3.6/Ex3_6.sce | 38 | ||||
-rw-r--r-- | 3556/CH3/EX3.8/Ex3_8.sce | 45 | ||||
-rw-r--r-- | 3556/CH3/EX3.9/Ex3_9.sce | 52 |
8 files changed, 317 insertions, 0 deletions
diff --git a/3556/CH3/EX3.1/Ex3_1.sce b/3556/CH3/EX3.1/Ex3_1.sce new file mode 100644 index 000000000..9e94460f3 --- /dev/null +++ b/3556/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,43 @@ +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 3: Methods of Analysis
+// Example 3 - 1
+
+clear; clc; close;
+//
+// Given data
+I1 = 5.00;
+I4 = 10.00;
+R2 = 4.00;
+R3 = 2.00;
+R5 = 6.00;
+A = [3.00 -1.00; -3.00 5.00];
+A1= [20.00 -1.00; 60.00 5.00];
+A2 =[3.00 20.00; -3.00 60.00];
+//
+// Calculations
+// Calculations V1 and V2
+V1 = det(A1)/det(A);
+V2 = det(A2)/det(A);
+// Calculations I2, I3, I5
+I2 = (V1 - V2)/R2;
+I3 = V1/R3;
+I5 = V2/R5;
+//
+// Display the result
+disp("Example 3-1 Solution : ");
+printf(" \n V1 = Voltage V1 = %.3f Volt",V1)
+printf(" \n V2 = Voltage V2 = %.3f Volt",V2)
+printf(" \n I1 = Current I1 = %.3f A",I1)
+printf(" \n I2 = Current I2 = %.3f A",I2)
+printf(" \n I3 = Current I3 = %.3f A",I3)
+printf(" \n I4 = Current I4 = %.3f A",I4)
+printf(" \n I5 = Current I5 = %.3f A",I5)
+
+
+
diff --git a/3556/CH3/EX3.12/Ex3_12.sce b/3556/CH3/EX3.12/Ex3_12.sce new file mode 100644 index 000000000..fea97325d --- /dev/null +++ b/3556/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,31 @@ +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 3: Methods of Analysis
+// Example 3 - 12
+
+clear; clc; close;
+// Given data
+Vs = 4.00
+VBE = 0.70
+Rb = 20000.00
+beta = 50.00
+//
+// Calculations
+// Calculations Ib
+Ib = ((Vs - VBE)/Rb)*10^6;
+// Calculations Ic
+Ic = beta * Ib;
+// Calculations Vo
+Vo = 6.00 - 100*Ic;
+//
+// Display the result
+disp("Example 3-12 Solution : ");
+printf(" \n Ib = Current basis = %.3f A",Ib)
+printf(" \n Ic = Current collector = %.3f A",Ic)
+printf(" \n Vo = Voltage collector - emitter = %.3f A",Vo)
+
diff --git a/3556/CH3/EX3.2/Ex3_2.sce b/3556/CH3/EX3.2/Ex3_2.sce new file mode 100644 index 000000000..4bfac0677 --- /dev/null +++ b/3556/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,37 @@ +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 3: Methods of Analysis
+// Example 3 - 2
+
+clear; clc; close;
+//
+// Given data
+A = [3.00 -2.00 -1.00;
+ -4.00 7.00 -1.00;
+ 2.00 -3.00 1.00];
+A1 = [12.00 -2.00 -1.00;
+ 0.00 7.00 -1.00;
+ 0.00 -3.00 1.00];
+A2 = [3.00 12.00 -1.00;
+ -4.00 0.00 -1.00;
+ 2.00 0.00 1.00];
+A3 = [3.00 -2.00 12.00;
+ -4.00 7.00 0.00;
+ 2.00 -3.00 0.00];
+//
+// Calculations
+// Calculations V1, V2 and V3
+V1 = det(A1)/det(A);
+V2 = det(A2)/det(A);
+V3 = det(A3)/det(A);
+//
+// Display the result
+disp("Example 3-2 Solution : ");
+printf(" \n V1 = Voltage at Node 1 = %.3f Volt",V1)
+printf(" \n V2 = Voltage at Node 2 = %.3f Volt",V2)
+printf(" \n V3 = Voltage at Node 3 = %.3f Volt",V3)
diff --git a/3556/CH3/EX3.4/Ex3_4.sce b/3556/CH3/EX3.4/Ex3_4.sce new file mode 100644 index 000000000..6f833f89c --- /dev/null +++ b/3556/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,38 @@ +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 3: Methods of Analysis
+// Example 3 - 4
+
+clear; clc; close;
+//
+// Given data
+A = [3.00 -1.00 -2.00;
+ 6.00 -1.00 -2.00;
+ 6.00 -5.00 -16.00];
+A1 = [0.00 -1.00 -2.00;
+ 80.00 -1.00 -2.00;
+ 40.00 -5.00 -16.00];
+A3 = [3.00 0.00 -2.00;
+ 6.00 80.00 -2.00;
+ 6.00 40.00 -16.00];
+A4 = [3.00 -1.00 0.00;
+ 6.00 -1.00 80.00;
+ 6.00 -5.00 40.00];
+// Calculations
+// Calculations V1, V2, V3 and V4
+V1 = det(A1)/det(A);
+V2 = V1 - 20.00;
+V3 = det(A3)/det(A);
+V4 = det(A4)/det(A);
+//
+// Display the result
+disp("Example 3-4 Solution : ");
+printf(" \n V1 = Voltage at Node 1 = %.3f Volt",V1)
+printf(" \n V2 = Voltage at Node 2 = %.3f Volt",V2)
+printf(" \n V3 = Voltage at Node 3 = %.3f Volt",V3)
+printf(" \n V4 = Voltage at Node 4 = %.3f Volt",V4)
diff --git a/3556/CH3/EX3.5/Ex3_5.sce b/3556/CH3/EX3.5/Ex3_5.sce new file mode 100644 index 000000000..8e152b0fb --- /dev/null +++ b/3556/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,33 @@ +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 3: Methods of Analysis
+// Example 3 - 5
+
+clear; clc; close;
+//
+// Given data
+
+A = [3.00 -2.00;
+ -1.00 2.00];
+A1= [1.00 -2.00;
+ 1.00 2.00];
+A2 =[3.00 1.00;
+ -1.00 1.00];
+//
+// Calculations
+// Calculations I1 and I2
+I1 = det(A1)/det(A);
+I2 = det(A2)/det(A);
+//
+// Display the result
+disp("Example 3-5 Solution : ");
+printf(" \n I1 = Current for mesh I1 = %.3f A",I1)
+printf(" \n I2 = Current for mesh I2 = %.3f A",I2)
+
+
+
diff --git a/3556/CH3/EX3.6/Ex3_6.sce b/3556/CH3/EX3.6/Ex3_6.sce new file mode 100644 index 000000000..1649fa353 --- /dev/null +++ b/3556/CH3/EX3.6/Ex3_6.sce @@ -0,0 +1,38 @@ +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 3: Methods of Analysis
+// Example 3 - 6
+
+clear; clc; close;
+//
+// Given data
+A = [11.00 -5.00 -6.00;
+ -5.00 19.00 -2.00;
+ -1.00 -1.00 2.00];
+A1 = [12.00 -5.00 -6.00;
+ 0.00 19.00 -2.00;
+ 0.00 -1.00 2.00];
+A2 = [11.00 12.00 -6.00;
+ -5.00 0.00 -2.00;
+ -1.00 0.00 2.00];
+A3 = [11.00 -5.00 12.00;
+ -5.00 19.00 0.00;
+ -1.00 -1.00 0.00];
+//
+// Calculations
+// Calculations I1, I2 and I3
+I1 = det(A1)/det(A);
+I2 = det(A2)/det(A);
+I3 = det(A3)/det(A);
+//
+// Display the result
+disp("Example 3-6 Solution : ");
+printf(" \n I1 = Current for mesh 1 = %.3f A",I1)
+printf(" \n I2 = Current for mesh 2 = %.3f A",I2)
+printf(" \n I3 = Current for mesh 3 = %.3f A",I3)
+
diff --git a/3556/CH3/EX3.8/Ex3_8.sce b/3556/CH3/EX3.8/Ex3_8.sce new file mode 100644 index 000000000..17744a51f --- /dev/null +++ b/3556/CH3/EX3.8/Ex3_8.sce @@ -0,0 +1,45 @@ +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 3: Methods of Analysis
+// Example 3 - 8
+
+clear; clc; close;
+//
+// Given data
+// Diagonal term of G
+G11 = (1/5.00) + (1/10.00);
+G22 = (1/5.00) + (1/8.00) + (1/1.00);
+G33 = (1/8.00) + (1/8.00) + (1/4.00);
+G44 = (1/8.00) + (1/2.00) + (1.00);
+// Off Diagonal term of G
+G12 = (-1/5.00); G13 = 0.00; G14 = 0.00;
+G21 = -0.20; G23 = -1/8.00; G24 = -1.00;
+G31 = G13; G32 = G23; G34 = -0.1250;
+G41 = G14; G42 = G24; G43 = G34;
+// Input Current
+I1 = -3.00;
+I2 = -3.00;
+I3 = 0.00;
+I4 = 6.00;
+//
+// Calculations
+// Calculations V1, V2, V3 and V4
+G = [ G11 G12 G13 G14;
+ G21 G22 G23 G24;
+ G31 G32 G33 G34;
+ G41 G42 G43 G44];
+I = [ I1; I2; I3; I4];
+V = inv(G)*I
+//
+// Display the result
+disp("Example 3-8 Solution : ");
+printf(" \n V1 = Voltage for Node 1 = %.3f Volt",V(1))
+printf(" \n V2 = Voltage for Node 2 = %.3f Volt",V(2))
+printf(" \n V3 = Voltage for Node 3 = %.3f Volt",V(3))
+printf(" \n V4 = Voltage for Node 4 = %.3f Volt",V(4))
+
diff --git a/3556/CH3/EX3.9/Ex3_9.sce b/3556/CH3/EX3.9/Ex3_9.sce new file mode 100644 index 000000000..06717fe13 --- /dev/null +++ b/3556/CH3/EX3.9/Ex3_9.sce @@ -0,0 +1,52 @@ +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 3: Methods of Analysis
+// Example 3 - 9
+
+clear; clc; close;
+//
+// Given data
+// Diagonal term of R
+R11 = 9.00;
+R22 = 10.00;
+R33 = 9.00;
+R44 = 8.00;
+R55 = 4.00;
+// Off Diagonal term of R
+R12 = -2.00; R13 = -2.00; R14 = 0.00; R15 = 0.00;
+R21 = -2.00; R23 = -4.00; R24 = -1.00; R25 = -1.00;
+R31 = R13; R32 = R23; R34 = 0.00; R35 = 0.00;
+R41 = R14; R42 = R24; R43 = R34; R45 = -3.00;
+R51 = R15; R52 = R25; R53 = R35; R54 = R45;
+// Input Voltage
+V1 = 4.00;
+V2 = 6.00;
+V3 = -6.00;
+V4 = 0.00;
+V5 = -6.00;
+//
+// Calculations
+// Calculations I1, I2, I3, I4 and I5
+R = [ R11 R12 R13 R14 R15;
+ R21 R22 R23 R24 R25;
+ R31 R32 R33 R34 R35;
+ R41 R42 R43 R44 R45;
+ R51 R52 R53 R54 R55];
+V = [ V1; V2; V3; V4; V5];
+I = inv(R)*V;
+//
+// Display the result
+disp("Example 3-9 Solution : ");
+printf(" \n I1 = Current for Mesh 1 = %.3f A",I(1))
+printf(" \n I2 = Current for Mesh 2 = %.3f A",I(2))
+printf(" \n I3 = Current for Mesh 3 = %.3f A",I(3))
+printf(" \n I4 = Current for Mesh 4 = %.3f A",I(4))
+printf(" \n I5 = Current for Mesh 5 = %.3f A",I(5))
+R
+
+
|