Use of linear algebra to solve corporate cash flow problems