Login   Register  
PHP Classes
elePHPant
Icontem

Pascal: Generate the triangle of Pascal with given rows

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-09-16 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 256 All time: 6,924 This week: 1,899Up
Version License PHP version Categories  
pascal 1.0Freeware3.0PHP 5, Math
Description Author  

This class can generate the triangle of Pascal with a given number of rows.

It takes as parameter the number of rows that you want the triangle of Pascal to have.

The class returns an array of arrays with the values that the triangle of Pascal has in each row.

Innovation Award  
PHP Programming Innovation award nominee
October 2011
Number 8
A Pascal triangle is mathematical construct to generate series of numbers used by certain statistical applications.

This class provides a pure PHP implementation for generating the numbers of a Pascal triangle.

Manuel Lemos
Picture of Edson Melo de Souza
Name: Edson Melo de Souza <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: 44
All time rank: 3060234 in Brazil Brazil
Week rank: 1779 Up147 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file example.php Example Example of use
Plain text file Pascal.class.php Class Main class

 Version Control Unique User Downloads Download Rankings  
 0%Total:256All time:6,924
 This week:0This week:1,899Up