Solved problems with tril function