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

Function GFPowUp

factory/cf_map_ext.cc:229–239  ·  view source on GitHub ↗

GF_map_up helper

Source from the content-addressed store, hash-verified

227
228/// GF_map_up helper
229static inline
230CanonicalForm GFPowUp (const CanonicalForm & F, int k)
231{
232 if (F.isOne()) return F;
233 CanonicalForm result= 0;
234 if (F.inBaseDomain())
235 return power(F, k);
236 for (CFIterator i= F; i.hasTerms(); i++)
237 result += GFPowUp (i.coeff(), k)*power (F.mvar(), i.exp());
238 return result;
239}
240
241CanonicalForm GFMapUp (const CanonicalForm & F, int k)
242{

Callers 1

GFMapUpFunction · 0.85

Calls 7

powerFunction · 0.85
hasTermsMethod · 0.80
mvarMethod · 0.80
isOneMethod · 0.45
inBaseDomainMethod · 0.45
coeffMethod · 0.45
expMethod · 0.45

Tested by

no test coverage detected