Macaulay2 » Documentation
Packages » EuclideanDistanceDegree » numericWeightEDDegree » homotopyEDDegree
next | previous | forward | backward | up | index | toc

homotopyEDDegree -- numerically compute ED degrees of affine cones using homotopy continuation

Description

Executes the homotopy defined by the passed in NumericalComputationOptions object. A weight homotopy will vary the weights of the distance function whereas a data homotopy will vary the data point. A stage1 homotopy solves the start system as defined in NCO whereas stage2 will perform the weight/data homotopy to solve the defined target system. It is possible to perform stage2 multiple times for different target systems without rerunning stage1, but at least one stage1 homotopy must be executed in the directory specified in NCO for stage2 to executed properly.

i1 : R = QQ[x,y];
i2 : F = G = {x^2+y^2-1};
i3 : NCO = newNumericalComputationOptions(F, G);
i4 : NCO#"TargetWeight" = apply(#gens R, i -> random RR);
i5 : GED = homotopyEDDegree(NCO, "Weight", true, true)
-- warning: experimental computation over inexact field begun
--          results not reliable (one warning given per session)

o5 = 4
i6 : NCO#"TargetWeight" = apply(#gens R, i -> 1_R);
i7 : UED = homotopyEDDegree(NCO, "Weight", false, true)

o7 = 2

Caveat

Inaccurate results may be returned if $V(F)$ is contained in $V(L)$. The computed ED degree may be lower than expected due to path tracking.

Menu

Ways to use homotopyEDDegree:

  • homotopyEDDegree(NumericalComputationOptions,String,Boolean,Boolean)

For the programmer

The object homotopyEDDegree is a method function.


The source of this document is in EuclideanDistanceDegree.m2:442:0.