Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

funny output from trim

22 views
Skip to first unread message

naddi...@gmail.com

unread,
Dec 31, 2024, 10:58:30 AM12/31/24
to Macaulay2
I ran this code:

R = QQ[x,y,X,Y,Z, Degrees=>{1,1,0,0,0}]
I = ideal(y*X-x*Z,x*Y-y*Z,x^2,y^2,x*y,Z-1,X*Y-Z^2,X-1,Y-1)
trim I

The output was

ideal(Z-1,Y-1,X-1,x-y,y^2,x*y,x^2)

when I would have expected

ideal(Z-1,Y-1,X-1,x-y,y^2)

Bizarrely, if I run

J = ideal(Z-1,Y-1,X-1,x-y,y^2,x*y,x^2)
trim J

then I do get the expected output.

Is this a bug, or should I tweak my input somehow?

Mahrud Sayrafi

unread,
Jan 2, 2025, 3:07:19 PMJan 2
to maca...@googlegroups.com
Hi Nick,

This definitely looks like a bug to me. I'll open an issue on GitHub.

Best,
Mahrud

--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/macaulay2/fa4f67a2-4286-4dc6-99c5-f65a5c1e6335n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages