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

Function patch

factory/facSparseHensel.h:576–588  ·  view source on GitHub ↗

patch together @a F1 and @a F2 and normalize by a power of @a eval @a F1 and @a F2 are assumed to be bivariate with one variable having level 1

Source from the content-addressed store, hash-verified

574/// patch together @a F1 and @a F2 and normalize by a power of @a eval
575/// @a F1 and @a F2 are assumed to be bivariate with one variable having level 1
576inline
577CanonicalForm patch (const CanonicalForm& F1, const CanonicalForm& F2,
578 const CanonicalForm& eval)
579{
580 CanonicalForm result= F1;
581 if (F2.level() != 1 && !F2.inCoeffDomain())
582 {
583 int d= degree (F2);
584 result *= power (F2.mvar(), d);
585 result /= power (eval, d);
586 }
587 return result;
588}
589
590/// sparse heuristic lifting by Wang and Lucks
591///

Callers 1

sparseHeuristicFunction · 0.85

Calls 5

degreeFunction · 0.85
powerFunction · 0.85
mvarMethod · 0.80
levelMethod · 0.45
inCoeffDomainMethod · 0.45

Tested by

no test coverage detected