Macaulay2 / Macaulay2/M2

curious behavior of "intersect"

Open
#2,175 4 comments 0 reactions 0 assignees View on GitHub
Core
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

The two answers should be the same:
```m2

i1 : R = QQ[x,y]

o1 = R

o1 : PolynomialRing

i2 : intersect (monomialIdeal (x*y^2), ideal (x^2*y))

2 2
o2 = monomialIdeal(x y )

o2 : MonomialIdeal of R

i3 : intersect (ideal (x^2*y), monomialIdeal (x*y^2))

2 2
o3 = ideal(x y )

o3 : Ideal of R
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two intersect calls in the Macaulay2 interpreter using the example over QQ[x,y]. Trace the intersect entry point and its handling of Ideal versus MonomialIdeal arguments; done means both argument orders produce the same result and compatible type.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.