PHP Math
Free and open source PHP scripts about Math related classes
Integer is an integer type class that supports very large numbers, multiple number base arithmetic and conversions (from and to binary, octal, decimal, hex and other up to 36 base numbers).

QuineMcCluskey Method can be used to minimize boolean functions with QuineMcCluskey algorithm.QuineMcCluskey Method takes as parameters the minterms, don'tcare terms and the number of variables. The script determines the essencial primes and returns them in an array.Requirements: PHP 5.0 or higher

An array of integer numbers is taken as input and sorted.Number Sequence generates a string that represents sequences of contiguous numbers as ranges with the first and the last sequence number separated by dashes. Non contiguous numbers are separated commas.For instance, array(1,2,3,5,7,8,9) is transformed in the sequence "13, 5, 79"Requirements: PHP 5.0 or higher

Edit Bitmap is a simple class that can be used to manipulate sets of bits stored in strings.Easy to do with Edit Bitmap: Calculate the position of a given bit number Retrieve, set or toggle the value of a given bit Compare given bit value Display the bit set

The syntax used to write the formulas can be defined. Basic logic operations (and, or, not, implies, etc...) can be applied. Proposition (cleaning, developing, disjunctive form, conjunctive form) can be transformed.You can even make demonstrations of your proposition, by looking up the values table or simply by demonstrating it (simple analysis of the disjunctive form: not too greedy). The FOLP ...

Stable can add numbers to a set of values so it can compute several types of statistics. Statistics such as median, modus or arithmentic mean, can be computed.Requirements: PHP 5.0 or higher

XML_Array class can be used to store and retrieve the contents of an array from a XML document. It can traverse a multidimensional array and generate the a XML document using the array entry keys as XML tags and the array entry values as tag data.XML_Array class can also do the opposite operation, parsing a XML document to build an ...

First Primes Factorycan determine if a number is prime or perfect.Key Features of Primes Factory: Count the number of prime number smaller than a given number Decompose a number in factors of prime numbers

Math prime 4.0 or higher performs several checks to find a number that divides the number to be tested with remainder 0.A boolean values is returned when the number is determine to be prime.Requirements: PHP 5.0 or higher

Mathematical expressions with operands and operators in reverse Polish can be parsed and evaluated. If the expression is split in multiple lines, it can evaluate each line individually.Currently Simple RPN Interpretersupports the operators: +,  , *, /, IF, THEN, SWAP, DUP, =, <>, >, <. >= and <= .Requirements: PHP 4.0.0 or higher

Several types of simple polynomial operations such as multiplying, dividing and removing brackets, are supported.Requirements: PHP 3.0 or higher

The derivation and integration expressions of a string expressing a polynome, are calculated.

QCP135 takes as parameters a string and data to compute the check, a seed value and the length of the checksum.The computed checksum is returned in a class variable.Requirements: PHP 3.0 or higher

parametric_diagram_3d takes the x(t),y(t),z(t) functions as parameters.Requirements: PHP

Eval Math can take an expression in a text string and evaluate it by replacing values of variables and calculating the results of mathematical functions and operations. It supports implicit multiplication, multivariable functions and nested functions.Eval Math can be used to evaluate expressions from untrusted sources. It provides robust error checking and only evaluates a limited set of functions. Graphs ...