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

Function myContent

factory/facFqFactorize.cc:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55listGCD (const CFList& L);
56
57static inline
58CanonicalForm
59myContent (const CanonicalForm& F)
60{
61 Variable x= Variable (1);
62 CanonicalForm G= swapvar (F, F.mvar(), x);
63 CFList L;
64 for (CFIterator i= G; i.hasTerms(); i++)
65 L.append (i.coeff());
66 if (L.length() == 2)
67 return swapvar (gcd (L.getFirst(), L.getLast()), F.mvar(), x);
68 if (L.length() == 1)
69 return LC (F, x);
70 return swapvar (listGCD (L), F.mvar(), x);
71}
72
73static inline
74CanonicalForm

Callers 7

extFactorRecombinationFunction · 0.85
factorRecombinationFunction · 0.85
liftBoundAdaptionFunction · 0.85
extLiftBoundAdaptionFunction · 0.85
earlyFactorDetectFunction · 0.85
extEarlyFactorDetectFunction · 0.85

Calls 13

VariableFunction · 0.85
LCFunction · 0.85
listGCDFunction · 0.85
degreeFunction · 0.85
mvarMethod · 0.80
hasTermsMethod · 0.80
swapvarFunction · 0.70
gcdFunction · 0.70
appendMethod · 0.45
coeffMethod · 0.45
lengthMethod · 0.45
getFirstMethod · 0.45

Tested by

no test coverage detected