factorize a squarefree multivariate polynomial over \f$ Q(\alpha) \f$ @return @a ratSqrfFactorize returns a list of monic factors, the first element is the leading coefficient.
| 49 | /// @return @a ratSqrfFactorize returns a list of monic factors, the first |
| 50 | /// element is the leading coefficient. |
| 51 | inline |
| 52 | CFList |
| 53 | ratSqrfFactorize (const CanonicalForm & G, ///<[in] a multivariate poly |
| 54 | const Variable& v= Variable (1) ///<[in] algebraic variable |
| 55 | ) |
| 56 | { |
| 57 | if (getNumVars (G) == 2) |
| 58 | return ratBiSqrfFactorize (G, v); |
| 59 | CanonicalForm F= G; |
| 60 | if (isOn (SW_RATIONAL)) |
| 61 | F *= bCommonDen (F); |
| 62 | CFList result= multiFactorize (F, v); |
| 63 | if (isOn (SW_RATIONAL)) |
| 64 | { |
| 65 | normalize (result); |
| 66 | result.insert (Lc(F)); |
| 67 | } |
| 68 | return result; |
| 69 | } |
| 70 | #endif |
| 71 | |
| 72 | #if defined(HAVE_NTL) || defined(HAVE_FLINT) // multiFactorize, henselLiftAndEarly, nonMonicHenselLift |
no test coverage detected