PHP Classes
elePHPant
Icontem

PHP Math Progressions: Calculate math progressions of several types

Recommend this page to a friend!
  Info   View files Example   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-02-04 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 130 All time: 8,892 This week: 313Up
Version License PHP version Categories
awesome-progressions 1.0The PHP License5.3PHP 5, Math
Description Author

This class can calculate math progressions of several types.

It provides several functions that take an initial number and the number of iteratuons to compute math progressions.

Currently it can compute math progressions of types: fibonacci, collatz,
cauchy, conway, generic arithmetic, and arithmetic progression using U(n+1) = U(n) + p.

Innovation Award
PHP Programming Innovation award nominee
February 2015
Number 7


Prize: One downloadable e-book of choice by O'Reilly
Progressions are sequences of numbers that are calculated based on the values of previous numbers in the sequence.

There are several types of math progressions. This class can compute the values of sequence numbers of several types of progressions.

Manuel Lemos
  Performance   Level  
Name: Ghali Ahmed <contact>
Classes: 5 packages by
Country: Tunisia Tunisia
Age: 35
All time rank: 22628 in Tunisia Tunisia
Week rank: 742 Up3 in Tunisia Tunisia Up
Innovation award
Innovation award
Nominee: 3x

Details

Usage & debug

<pre> $math = new AwesomeProgression();

$math->debug('fibonnaci 4 = 3', $math->fibonnaci(4, true)); $math->debug('fibonnaci 8 = 21', $math->fibonnaci(8, true)); </pre>

Tests

phpunit --verbose AwesomeProgressionTest.php

  Files folder image Files  
File Role Description
Files folder imagedemo (1 file)
Files folder imagep5 (2 files, 2 directories)
Plain text file AwesomeProgression.php Class Class source
Accessible without login Plain text file AwesomeProgressionTest.php Test Unit test script
Accessible without login Plain text file Readme.md Data Auxiliary data

  Files folder image Files  /  demo  
File Role Description
  Accessible without login Plain text file fibonnaci.php Example Example script

  Files folder image Files  /  p5  
File Role Description
Files folder imageaddons (3 files)
Files folder imageempty-example (2 files)
  Accessible without login Plain text file p5.js Data Auxiliary data
  Accessible without login Plain text file p5.min.js Data Auxiliary data

  Files folder image Files  /  p5  /  addons  
File Role Description
  Accessible without login Plain text file p5.dom.js Data Auxiliary data
  Accessible without login Plain text file p5.sound.js Data Auxiliary data
  Accessible without login Plain text file p5.sound.min.js Data Auxiliary data

  Files folder image Files  /  p5  /  empty-example  
File Role Description
  Accessible without login Plain text file index.html Data Documentation
  Accessible without login Plain text file sketch.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:130
This week:0
All time:8,892
This week:313Up