I am trying to use linsolve to solve the simultaneous equations for a circuit.

The wxMaxima code I used is:

= = =

vd: i1*R3 - iT(R3 + R4);
eq1: vT - iT*R4 -(iT - i1)

*(R3 + R2) = 0;*

eq2: -(i1 - i2)Ro - Ao

eq2: -(i1 - i2)

*vd -(i1 - iT)*(R2 + R3) = 0;

eq3: -i2

*R1 + Ao*vd -(i2 - i1)*Ro = 0;

linsolve([eq1, eq2, eq3], [iT, i1, i2]);

Rth: vT/%o5[1];

Ao: 1E5;

R1: 4.7E3;

Ro: 100;

R2: 10E3;

R3: 1E5;

R4: 1E5;

ev(Rth);

= = =

You can see that linsolve has a solution for iT which includes iT. Further, when I as for Rth in the following step, both vT and iT are in the solution for the ratio of vT/iT.

I then specify values for the constants and ask for a numerical evaluation of Rth which again specifies the ratio of vT/iT in terms of both vT and iT.

Is there something I am doing wrong?

= = =

P.S. Is it not possible to load a .wxm file here?