Skip to content

Commit 9460478

Browse files
bkhollerd-torrance
authored andcommitted
updated test for interpolateComponent
1 parent 0bd7c89 commit 9460478

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

M2/Macaulay2/packages/MultigradedImplicitization.m2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ newPackage(
1515
},
1616
Headline => "solving implicitization problems using multigradings",
1717
Keywords => {"Algebraic Statistics", "Commutative Algebra"},
18-
PackageImports => {"gfanInterface"},
18+
PackageImports => {"gfanInterface"}
1919
)
2020

2121
--------------------
@@ -359,10 +359,10 @@ R = KK[x_1..x_(numcols A)];
359359
S = KK[t_1..t_(numrows A)];
360360
F = map(S, R, apply(numcols(A), i -> S_(flatten entries A_i)));
361361
dom = newRing(R, Degrees => A);
362-
G = componentsOfKernel(2,F, UseInterpolation => true, CoefficientRing => KK);
363-
G = new HashTable from G;
364-
G = delete(null, flatten values(G));
365-
assert(sub(ideal(G),R) == ker F)
362+
use R;
363+
samplePoints = {{x_1 => -6002, x_2 => -37732, x_3 => -43250, x_4 => 32043, x_5 => -32855, x_6 => -9794, x_7 => 15988, x_8 => 12703, x_9 => 46296}, {x_1 => -44235, x_2 => 32764, x_3 => -554, x_4 => -2799, x_5 => -45090, x_6 => -47890, x_7 => 7916, x_8 => -47725, x_9 => 17466}}
364+
G = interpolateComponent(samplePoints, sub(basis({0, 1, 1, 0, 1}, dom), R))
365+
assert(G == {x_6*x_8-x_5*x_9})
366366
///
367367

368368
-----------------------------

0 commit comments

Comments
 (0)