I have an equation of $4$ degree (Quartic equation)and a coefficient of this equation takes $1$ megabyte space in a text file. I want to solve this Quartic equation using computer. If the the equation has rational solution, I want to get rational solution with the exact numerator and the exact denominator (not the approximation). Is it possible?
There are are programming languages (e.g. MAGMA), computer algebra systems (e.g. PARI/GP, SageMath etc, here PARI is C library, can be called from a high-level language application ,for instance, written in C, C++, Pascal, Fortran, Perl, or Python).
If possible, then which programming language or computer algebra systems or library or softaware will be best to solve the Quartic equation as described above? What are the additional issues (configurations of RAM, Processor)?
I think you can use PARI/GP to do the job if you have enough RAM and CPU time. You can use the
factor()function. Of course, you have to read the coefficients from the text file first, for example, using thereadvec()function. Then construct a polynomial from those coefficients using thePol()function.Here is a very simple example of what
gpcan do with a quartic polynomial:The quartic $P$ has integer coefficients. It has a linear factor of $\,5x-7\,$ which implies that one root is $\,x = 7/5 = 1.4\,$ and the the other factor is an irreducible cubic. The printing of the roots of the polynomial confirms that $\,1.4\,$ is a root. If you want, you can call the
PARIlibrary from a high-level language as you suggested. You will get essentially the same results.