PHP Classes

Math: Perform several types of operations with numbers

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 230 All time: 8,156 This week: 126Up
Version License PHP version Categories
math-package 1.0GNU General Publi...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
  Performance   Level  
Name: Assaad Youssef Abou ... <contact>
Classes: 3 packages by
Country: Lebanon Lebanon
Age: 42
All time rank: 32884 in Lebanon Lebanon
Week rank: 164 Up1 in Lebanon Lebanon Up

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

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

  Files folder image Files (8)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:230
This week:0
All time:8,156
This week:126Up