NumberTheory`Recognize`This package defines the function Recognize for determining a polynomial with integer coefficients, given an approximate real zero of the polynomial and the degree of the polynomial. The resulting polynomial is normally not unique. Determining a polynomial from a solution. This loads the package. This finds a linear polynomial in t with solution 1.7.
Out[2]= |  |
NSolve gives the numerical solutions of a cubic equation.
Out[3]= |  |
Here is the first solution.
Out[4]= |  |
This result is proportional to the original polynomial used in NSolve.
Out[5]= |  |
Here is a quadratic polynomial for which sol is an approximate solution.
Out[6]= |  |
This result is a polynomial of degree 5.
Out[7]= |  |
If the penalty is large enough, a lower-order polynomial may be returned.
Out[8]= |  |
|