I am am trying to find out, if I can somehow find a matrix exponential in kind of closed form for the symbolic matrix:
n=3;
a = symbols(['a'+str(1+k) for k in range(n)], real=True);
Ts = symbols('T_s',real=True,positive=True);
A = Matrix([zeros(1,n),eye(1,n),a])
however
expm(A)
seems not to work, "TypeError: cannot create mpf from a1"! Then I tried to get an estimate using the series expansion, but again:
Sum(A**n, (n, 0, 1))
gives: "ValueError: Matrix det == 0; not invertible". I guess they try to get the power of the matrix by joran blocks and my structure is not good for that. How can I proceed anyway? A**2 can be calculated, but the sum over A**1 and A**0 not?!