Projects / phpEquations

phpEquations is a PHP class that can find the solutions of linear, polynomial, and trigonometric mathematical equations and systems. It takes a string with one or more equations and parses it to solve the equations. The solutions are returned as an associative array with the values of each equation variable. The class uses a variation of Newton's method with a special technique, called Blocking, to maximize speed by reducing a large problem into smaller problems with fewer variables. The time limit for running the algorithm, the number of variables, the number of iterations, and the iteration step are configurable parameters.

Tags | Maths equations polynomials trigonometry |
---|---|

Licenses | GPL |

Implementation | PHP |

Tweet