math-php
math-php copied to clipboard
Find roots of any polynomial with its companion matrix
Any polynomial can be converted into a matrix, such that the eigenvalues of the matrix are the roots of the polynomial. https://en.wikipedia.org/wiki/Companion_matrix