M2 icon indicating copy to clipboard operation
M2 copied to clipboard

not using cached result

Open DanGrayson opened this issue 7 years ago • 2 comments

Shouldn't we use the previously cached result here?

Macaulay2, version 1.11.1
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, LLLBases,
               PrimaryDecomposition, ReesAlgebra, TangentCone

i1 : R=ZZ/101[x,y]

o1 = R

o1 : PolynomialRing

i2 : gbTrace=1

o2 = 1

i3 : I=ideal vars R

o3 = ideal (x, y)

o3 : Ideal of R

i4 : gens gb I

   -- [gb]{1}(2)number of (nonminimal) gb elements = 2
   -- number of monomials                = 2
   -- 
o4 = | y x |

             1       2
o4 : Matrix R  <--- R

i6 : groebnerBasis (I,Strategy=>"F4")
-- computing mgb F4 {Reducer => null, Threads => 0, SPairGroupSize => 0, Log => , Reducer => F4}

o6 = | y x |

             1       2
o6 : Matrix R  <--- R

DanGrayson avatar Jun 04 '18 08:06 DanGrayson

@mikestillman - Am I right?

DanGrayson avatar Jun 05 '18 12:06 DanGrayson

Yes, if the computation is complete.

mikestillman avatar Jun 05 '18 12:06 mikestillman