i have this problem, need to solve with conditions and cannot find yet how to describe in maxima (or maple)
This describe a finite state machine (n variable).
S is a matrix of equations.
S[i][j] = a * S[i][j-1] + b * S[i-1][j]
i-1<0 or j-1<0 -> S[i][j] = 0
i=n-1 and j=n-1 S[i][j] = 0
And the last step.
S[n-1][n-1] = a * S[n-1][n-2] + b * S[n-2][n-1] + b * Sa1 + a Sb1
Sa1 = a * S[n-1][n-1]
Sb1 = b * S[n-1][n-1]
Saf = a (Sa1 + S[0][n-1]+ S[1][n-1] ... S[n-2][n-1])
Sbf = b (Sb1 + S[n-1][0]+ S[n-1][1] ... S[n-1][n-2])
How can i write this in wxmaxima and solve? There are a specific concept?
Best regards