summaryrefslogtreecommitdiff
path: root/1430/CH4/EX4.11/exa4_11.sce
blob: 6a0b5f52110b3df51b147099b0ef6dc6b7cab25d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Example 4.11
// Mesh Analysis of a Current Amplifier
R=[37 -1 0;-1 41 -4;0 -4 19]; // Resistance matrix
//v_a=6*i_1 , v_b=4*(i_3-i_2)
// [v_s]=[30*i_s;0;0]+[0 0 0;-864 0 0 ; 0 96 -96]*[i_1;i_2;i_3]
i_s=10^-3; // Assumption
R_tilda=[0 0 0;-864 0 0;0 96 -96];
v_s_tilda=[30*i_s;0;0];
// Using Equation, [R-R_tilda][i]=[v_s_tilda]
i=(R-R_tilda)\v_s_tilda
i_1=i(1,1);
i_2=i(2,1);
i_3=i(3,1);
A_i=i_3/i_s; // Gain Of Current Amplifier
disp(A_i,"Gain of Current Amplifier is=")