Login   Register  
PHP Classes
elePHPant
Icontem

Math: Perform several types of operations with numbers

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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-11-02 (11 months ago) RSS 2.0 feedNot enough user ratingsTotal: 202 This week: 1All time: 7,218 This week: 1,545Up
Version License PHP version Categories  
math-package 1.0GNU General Public Lice...5.0PHP 5, Math
Description Author  

This package can perform several types of operations with numbers.

It provides several classes that perform different types of math operations.

Currently it provides classes for:

- Finding the greatest common divisor
- Finding the latest common multiple
- Determining if a number is odd or even and extract from arrays
- Compute the factorial of a number
- Check if a number is prime
- Find all prime numbers up to a limit
- Calculate the sin, cosine, tangent of the sum, difference or product of angles

Picture of Assaad Youssef Abou Rached
Name: Assaad Youssef Abou ... <contact>
Classes: 3 packages by
Country: Lebanon Lebanon
Age: 32
All time rank: 30693 in Lebanon Lebanon
Week rank: 1141 Up2 in Lebanon Lebanon Up

  Files folder image Files  
File Role Description
Files folder imagelibs (1 file, 1 directory)
Plain text file index.php Example Test file

  Files folder image Files  /  libs  
File Role Description
Files folder imageClasses (6 files)
  Plain text file loader.php Aux. Autoloads the required classes

  Files folder image Files  /  libs  /  Classes  
File Role Description
  Plain text file DivisorsMultiples.php Class Returns the GCD (greatest common devisor) and LCM (lowest common multiple) for two integers
  Plain text file EvenOdd.php Class Checks whether a number is even or odd; extracts all even/or odd numbers from a given array
  Plain text file Factorial.php Class Returns the factorial value of a number
  Plain text file Math.php Class Main class
  Plain text file Prime.php Class Checks if the number is prime; gets the next prime number; gets the previous prime number; and other operations
  Plain text file Trig.php Class Basic and pythagorean identities; angle-sum and angle-difference identities; sum identities; product identities

 Version Control Unique User Downloads Download Rankings  
 0%Total:202All time:7,218
 This week:1This week:1,545Up