% Student Example 1

clear;
syms s i1 i2 i3 ib i
eqn1 = i1 == -i;
eqn2 = 3*(i2 - i1) + (1/(2*s))*(i2 - ib) + 6*(i2 - i3) == 0;
eqn3 = 6*(i3 - i2) + 4*s*i3 == 0;
eqn4 = (1/(2*s))*(ib - i2) + 3*s*ib == 0;
[i1,i2,i3,ib] = solve([eqn1,eqn2,eqn3,eqn4],[i1,i2,i3,ib]);
G=ib/i