PascalsTriangle Pascals triangle for binomial expansion What is this code for? This code exppands biomiials. a binomial is an expression writen in the form (a+b)^n It uses a pattern to make this computationally easy to solve.