EuclideanDistanceDegree v1#4353
Open
whuang259 wants to merge 2 commits into
Open
Conversation
mahrud
reviewed
May 22, 2026
d-torrance
reviewed
May 22, 2026
Member
|
The example are all failing because bertini isn't installed on the GitHub runners: -- -*- M2-comint -*- hash: 15398408180617996408
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)
sh: 1: bertini: not found
true
stdio:5:22:(3):[1]: error: Bertini run failed.
-- -*- M2-comint -*- hash: 15222729530691853413
i1 : R = QQ[x,y];
i2 : F = G = {x^2 + y^2 - 1};
i3 : sampleGen = () -> apply(#gens R, i -> random(RR));
i4 : aED = averageNumericEDDegree(F, G, 10, SampleGenerator => sampleGen)
sh: 1: bertini: not found
true
stdio:4:28:(3):[1]: error: Bertini run failed.
-- -*- M2-comint -*- hash: 12902145464090925420
i1 : R = QQ[x,y];
i2 : F = G = {x^2 + y^2 - 1};
i3 : dir = temporaryFileName();
i4 : NCO = newNumericalComputationOptions(F, G, TempDirectory => dir);
i5 : NCO#"TargetWeight" = apply(#gens R, i -> 1_R);
i6 : UED = homotopyEDDegree(NCO, "Weight", true, true)
-- warning: experimental computation over inexact field begun
-- results not reliable (one warning given per session)
sh: 1: bertini: not found
true
stdio:6:22:(3):[1]: error: Bertini run failed.
-- -*- M2-comint -*- hash: 6775569773143953516
i1 : R = QQ[x,y];
i2 : F = G = {x^2+y^2-1};
i3 : (U,W) = ({.12, .23}, {.15, .331});
i4 : UED = numericUnitEDDegree(F, G)
sh: 1: bertini: not found
true
stdio:4:25:(3):[1]: error: Bertini run failed.
-- -*- M2-comint -*- hash: 399917589567742851
i1 : R = QQ[x,y];
i2 : F = {x^2 + y^2 - 1};
i3 : determinantalUnitEDDegree(F)
o3 = 2
i4 : leftKernelUnitEDDegree(F)
sh: 1: bertini: not found
Warning: The HomVariableGroup is written first and then the AffVariableGroup is written second.
true
stdio:4:22:(3):[1]: error: Bertini run failed.
-- -*- M2-comint -*- hash: 10893047696075686640
i1 : R = QQ[x,y];
i2 : F = {x^2 + y^2 - 1};
i3 : (U,W) = ({.12, .23}, {.15, .331});
i4 : UED = leftKernelUnitEDDegree F
sh: 1: bertini: not found
Warning: The HomVariableGroup is written first and then the AffVariableGroup is written second.
true
stdio:4:28:(3):[1]: error: Bertini run failed.
-- -*- M2-comint -*- hash: 17265651732443607604
i1 : R = QQ[x,y];
i2 : F = {x^2 + y^2 - 1};
i3 : dir = temporaryFileName();
i4 : GED = leftKernelGenericEDDegree(F, TempDirectory => dir)
sh: 1: bertini: not found
Warning: The HomVariableGroup is written first and then the AffVariableGroup is written second.
true
stdio:4:31:(3):[1]: error: Bertini run failed. On one hand, it's probably not a bad idea for us to install bertini in the GitHub runners, but on the other hand, it would be good if we could detect when it's not available and not try to run the examples. One way to do this is with the newPackage("EuclideanDistanceDegree",
...
OptionalComponentsPresent => (readPackage "Bertini").OptionalComponentsPresent,
CacheExampleOutput => true,
...)The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attached is a pull request for the
EuclideanDistanceDegreepackage, coauthored with @JoseMath