Jim Frankenfield - Science & Engineering Pages


Pascals Triangle

Pascals triangle is known in Italy as Tartaglias Triangle. Italian algebraist Niccolo Fontana Tartaglia lived a century earlier than Blaise Pascal and is credited with the first general formula for solving cubic polynomials.

Pascals (Tartaglias) Triangle is perhaps best known for providing the coefficients in a binomial epansion, but it also has many other fascinating properties. See the Wikipedia entry for more details.

This simple PHP program I found somewhere a long time ago is Italian (thus the Tartaglia label) by Alessandro Sfondrini. I'm sure there are many others now and it should not be too hard to write one from scratch.

Enter the number of rows of the triangle you want and it will generate it. For large entries the rows will wrap. (This begins at 18 for the full page width used here. On a small screen like a phone, well, good luck!) To generate another one use the "Back" button on your browser.

Binomial Exponent (or Triangle Rows): (A+B)^