PHP Math
Free and open source PHP scripts about Math related classes
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.

The script Arc Length can be used measure the length of arc of circle that contains 3 given points. Arc Length takes the coordinates of three points and tries to fit them in a arc of circle. Then it calculates the length of that arc.

Trigonometric tools is the sine of an angle can be computed from the cosine or tangent, while the cosine from the sine and tangent. Requirements: PHP 5.0 or higher

Quadratic Equation Solver takes as parameters the coefficients a, b and c and the precision of the root values. The quadratic equation roots are calculated returned in an array. Requirements: PHP 5.0 or higher

xFraction can take as parameters fractional numbers represented in several ways, like array with numerator and denominator integer values, integer, floating point or string with a number. Operations such as adding, subtracting, multiplying, dividing, comparison, cancel, retrieving the canceled reciprocal fraction, can be performed. Requirements: PHP 5.0 or higher

MyBox takes the dimension of a package defined by its width, height and depth, and computes the volumetric weight.The volumetric weight can be displayed in Kg or pounds.Requirements: PHP 4.0 or higher

A specified number is taken as parameter and is returned formatted using the scientific notation with Scientific Format.Requirements: PHP 5.0 or higher

The coordinates of the four points required to draw the curve, need to be specified. Requirements: PHP

Dec 2 Roman Converter can convert numbers both ways from 1 to 10999. Requirements: PHP 5 or higher

Recursion is used for multiplying an integer number by all numbers with inferior values.Factorial and Euler Constant calculation can also calculate the Euler or Napier constant (e = 2,71...) with up to 15 iterations.Requirements: PHP 3.0 or higher

Bitmasks that are longer than 32 bits can be manipulated and the GMP PHP extension is not required for arbitrary bit length support. This absence of limits may encourage the storage of more complex data than merely true or false lists for those that are creative enough to figure it out.Although PHP programmers commonly rely on databases to do much ...

Fraction takes a numerator and denominator number and can perform basic operations with other fractional numbers such as addition, subtraction, multiplication and division. The resulting fraction can be simplified by dividing both the numerator and denominator by their common denominator.Requirements: PHP 5.0 or higher

Supported operations include adding, subtracting, multiplying and dividing.Requirements: PHP

Rational numbers are those numbers that can be represented as the ratio between two integer numbers. Any real number with a finite number decimal digits or that repeats a sequence of digits can be represented as a rational number.Adding, subtracting, multiplying and dividing are supported operations.The results of the operations are also rational numbers, simplified to eliminate any common factors ...

Composite Factoring takes a given integer number and determines a list of prime numbers that once multiplied by each other result in the original number.An array containing the prime number factors is returned.Requirements: PHP 5.0 or higher