def casoratian(seqs, n, zero=True):
 from .dense import Matrix
 seqs = list(map(sympify, seqs))
 if (not zero):
  f = (lambda i, j: seqs[j].subs(n, (n + i)))
 else:
  f = (lambda i, j: seqs[j].subs(n, i))
 k = len(seqs)
 return Matrix(k, k, f).det()

def casoratian ( seqs , n , zero = True ) : from . dense import Matrix seqs = list ( map ( sympify , seqs ) ) if ( not zero ) : f = ( lambda i , j : seqs [ j ] . subs ( n , ( n + i ) ) ) else : f = ( lambda i , j : seqs [ j ] . subs ( n , i ) ) k = len ( seqs ) return Matrix ( k , k , f ) . det ( )
given linear difference operator l of order k and homogeneous equation ly = 0 we want to compute kernel of l .