No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Polynomials.php
README.md
start.php

README.md

This class allows to parse polynomials in one variable (x), simplify input expressions, and divide the polynomials by linear polynomials using Horner method.

php7.2 is required because of 'J' pattern modifier.

For example, admissible polynomial expressions are

5x^2x^3 + 12.003x^5 + x^12 - 122x^9x^5; x+x+5.005x^2x^3; 0.23x^12+7x^0;

You can also input real points using expressions like

Points (-8, -14.02, 0.123, 0.442, 355 , 1 );

and use it as data for division by Horner method.