Question: 112 - + 100% 2 Pascal's triangle 1 3 3 1 1 5 10 10 5 1 Pascal's triangle (see figure above) is a collection

 112 - + 100% 2 Pascal's triangle 1 3 3 1

112 - + 100% 2 Pascal's triangle 1 3 3 1 1 5 10 10 5 1 Pascal's triangle (see figure above) is a collection of numbers arranged in an isosceles triangle. Each number on the two later edges is a 1, while each inner number equals the sum of the two numbers immediately above it. Among other uses, Pascal's triangle provides the coefficients for each of the terms in the expanded version of (a+ b)". For example, for n = 3, (a+b)3 =a3 + 3a2b + 3b2 + b3 has coefficients (1,3,3, 1), which correspond to the 4th row of Pascal's triangle. In this problem, you will calculate the numbers on each row of Pascal's triangle. To this end, complete the function with a header function coefs- pascalTri(n) which returns, coefs, the array of coefficients, in the nth row of Pascal's triangle. To compute each individual entry, use the subfunction with header function val- pascalTriEntry (n,m) which employs recursion to calculate the mth entry of the nth row of Pascal's triangle. For this problem please submit the following files: pascalTri.m

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!