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

Function evalPoint

factory/cfModResultant.cc:310–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static inline
311void evalPoint (const CanonicalForm& F, const CanonicalForm& G,
312 CanonicalForm& FEval, CanonicalForm& GEval,
313 CFGenerator& evalPoint)
314{
315 int degF, degG;
316 Variable x= Variable (1);
317 degF= degree (F, x);
318 degG= degree (G, x);
319 do
320 {
321 if (!evalPoint.hasItems())
322 break;
323 FEval= F (evalPoint.item(), 2);
324 GEval= G (evalPoint.item(), 2);
325 if (degree (FEval, 1) < degF || degree (GEval, 1) < degG)
326 {
327 evalPoint.next();
328 continue;
329 }
330 else
331 return;
332 }
333 while (evalPoint.hasItems());
334}
335
336static inline CanonicalForm
337newtonInterp (const CanonicalForm & alpha, const CanonicalForm & u,

Callers 1

resultantFpFunction · 0.70

Calls 6

VariableFunction · 0.85
degreeFunction · 0.85
FFunction · 0.50
hasItemsMethod · 0.45
itemMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected