Opened 11 years ago

Closed 10 years ago

#527 closed bug (fixed)

primdecZ() fails for ideal I=1

Reported by: kroeker@… Owned by: pfister
Priority: minor Milestone: Release 4-0-0
Component: singular-libs Version: spielwiese
Keywords: primdecZ fails ideal Cc:

Description

minimal failing example:

ring rng = integer,x,dp;
ideal I=1;
minAssZ(I);
primdecZ(I); //error: "identifier A not found in Rhelp"

Change History (6)

comment:1 Changed 11 years ago by kroeker@…

forgot to load "primdecint.lib" in example. Updated failing example:

LIB("primdecint.lib");
ring rng = integer,x,dp;
ideal I=1;
minAssZ(I);
primdecZ(I); //error: "identifier A not found in Rhelp"

comment:2 Changed 11 years ago by Oleksandr

i confirmed this report with the current SW. The output is as follows:

>  minAssZ(I);
empty list
>  primdecZ(I); //error: "identifier A not found in Rhelp"
// ** redefining A **
   ? identifier A not found in Rhelp
   ? error occurred in or before primdecint.lib::primdecZ line 180: `      list A = imap(Rhelp,A);`
   ? leaving primdecint.lib::primdecZ
   skipping text from `;` error at token `)`

comment:3 Changed 10 years ago by hannes

Owner: changed from somebody to pfister

comment:4 Changed 10 years ago by anonymous

The list A is initialized in primdecZ as a list without assigning a ring-related entry. Hence the list does not belong to the ring, but to the ring-independent variables as long as no ring-related entry is assigned.

Suggested Bug-Fix: list A=ideal(0); in line 97 (formerly list A;) and then make sure to always skip first entry of list A. This glues it to the ring Rhelp.

Best regards, Anne

comment:6 Changed 10 years ago by hannes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.