The documentation for the factoring functions reads something like "Factorises a non-constant polynomial ..." but it does not say what it does with the factorization, and it is unfortunate to find out the actual behaviour is the following only by trial and error
factor_init(f)
factor(f, a)
/* f is now a factorization of a */
factor(f, b)
/* f is now a factorization of a*b !!! */
Furthermore, the nonsense is compounded by the fact that the factors are inserted via a slow quadratic insertion sort.
The documentation for the factoring functions reads something like "Factorises a non-constant polynomial ..." but it does not say what it does with the factorization, and it is unfortunate to find out the actual behaviour is the following only by trial and error
Furthermore, the nonsense is compounded by the fact that the factors are inserted via a slow quadratic insertion sort.