I'm using GNU Octave with Symbolic (SymPy) and I want all s^2 should have scalar 1.
% Load packet
pkg load symbolic
% Symbolic
syms Vin Vout dVout ddVout R C Rf R1
A = 1 + Rf/R1;
eq = Vin == Vout/A + R*C*1/A*dVout + R*(C*1/A*dVout + C*((1/A*dVout + R*C*1/A*ddVout)- dVout));
% More symbolic
syms U s Y
eq2 = subs(eq, {Vin, Vout, dVout, ddVout}, {U, Y, Y*s, Y*s^2});
eq3 = expand(eq2);
% Transfer function G = Y/U
G = simplify(solve(eq3, Y)/U)
Output:
G = (sym)
R1 + Rf
----------------------------------------
2 2 2
C *R *R1*s + 2*C*R*R1*s - C*R*Rf*s + R1
If you run that code above, you will get a transfer function G of second order. But it's not on the second order standard form.
The standard form requries that s^2 have a scalar one. Then I can compute the rest of greek letters.
Question:
Is it possible in GNU Octave Symbolic (SymPy) to tell that s^2 should have scalar 1?
