PHP Math

Free and open source PHP scripts about Math related classes
  1. No Screenshot
    285 total visits
    This is a simple PHP script to show the distance between places on Earth. Users have a form in front of them, where they can enter the locations in and submit it.The script will calculate the distance between the two points, showing the locations on maps, while also a map with the two points linked.
  2. complex_number
    168 total visits
    This is a simple PHP script to handle complex numbers. The script can handle various mathematical operations. It includes adding and subtraction.
  3. Array Treatment
    136 total visits
    This script can be used to count array values by given the entried names. It traverses a given array of associative array values and group all entries that have the same value of a given entry.Array Treatment can return an associative array with the key entries which is defined by one given entry, summing all values of another given entries.Requirements:- ...
  4. No Screenshot
    394 total visits
    Matrix new is an enhanced version of the Matrix class originally written by Diego Carrera. The script is designed to allow matrix operations in PHP code. This version introduces functions to set the matrix columns and rows values directly, added a few more mathematical functions to initialize the values of the matrix, among other enhancements.Requirements:- PHP 4 or higher
  5. No Screenshot
    279 total visits
    This is a function to convert a 64 bit number since base_convert will choke on a number that size. There is only one function in this scripts. What you need to do is pass your parameters to the function, then it will return what you need.
  6. No Screenshot
    484 total visits
    This class can be used to solve cubic equations. It takes the values of the coefficients and determines the roots of the cubic equation. Requirement: PHP 5.0 or Higher
  7. No Screenshot
    530 total visits
    This class can be used to calculate the median and percentile of a set of values.It takes a set of numeric values and can calculate an arbitrary percentile.The class can also calculate the median (50%) and quartile (25%, 50%, 75%).
  8. No Screenshot
    248 total visits
    This class can be used to generate a series of numbers that decrease smoothly.It takes as arguments an initial value and the number of steps of numbers to be generated.The class generates a series of numbers equal to the number of specified steps that decrease from the initial value until it reaches zero, using quadratic equations to determine the approximation ...
  9. No Screenshot
    316 total visits
    This class can perform several types of general purpose utility functions.Currently it can:- Compare and manipulate dates- Extract IEEE 754 floating point values- Validate strings with IP addresses- Extract all keys associated with a value in an array- Etc.
  10. Matrix new
    533 total visits
    This class can be used to perform operations to manipulate matrices.It is an enhanced version of the Matrix class originally written by Diego Carrera. This version introduces functions to set the matrix columns and rows values directly, added a few more mathematical functions to initialize the values of the matrix, among other enhancements.
  11. No Screenshot
    253 total visits
    This class can be used to generate Fibonacci sequence numbers.It provides an iterator interface to generate the following Fibonnaci number when retrieving the next iterator element.
  12. Equation
    430 total visits
    This package can be used to evaluate and render polynomial equations.It can take an array of coefficients of a polynomial equation and can evaluate it for a given x value.It can also generate HTML to render the equation in a Web page.
  13. Dec2RomanNumConverter
    317 total visits
    This class can be used to convert numbers between decimal and roman representations and vice-versa.It takes a number between 1 and 10999 and converts it to a string that represents the number with roman digits.The class can also do the opposite, i.e. take a string that contains a number represented with roman digits and converts it to decimal.
  14. No Screenshot
    1002 total visits
    This class is designed to create bitmasks, which are very commonly used to store lists of true or false values as a single integer.The class can manpulate bitmasks that are not limited to 32 bits. It does not need the PHP gmp extension to provide arbitrary bit length support.This absence of limits may encourage the storage of more complex data ...
  15. No Screenshot
    1378 total visits
    This class can be used to find prime numbers with the Sieve of Atkin algorithm.It can take a limit number and find all prime numbers smaller than the given limit.
Pages 1 of 5« 1 2 3 4 5 »