MCPcopy Create free account
hub / github.com/Singular/Singular / ratSqrfFactorize

Function ratSqrfFactorize

factory/facFactorize.h:51–69  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

49/// @return @a ratSqrfFactorize returns a list of monic factors, the first
50/// element is the leading coefficient.
51inline
52CFList
53ratSqrfFactorize (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

Callers 2

factorizeFunction · 0.85
ratFactorizeFunction · 0.85

Calls 9

VariableFunction · 0.85
getNumVarsFunction · 0.85
ratBiSqrfFactorizeFunction · 0.85
isOnFunction · 0.85
bCommonDenFunction · 0.85
LcFunction · 0.85
multiFactorizeFunction · 0.70
normalizeFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected