Opened 11 years ago

Closed 11 years ago

#376 closed bug (fixed)

Problem with coefficients of polynomials in large characteristic

Reported by: slaplagne@… Owned by: somebody
Priority: minor Milestone: 3-1-4 and higher
Component: dontKnow Version: 3-1-3
Keywords: large prime characteristic Cc:

Description

When I run this code in Singular

ring r=0,(x,y,t),dp; poly p1 = 3842432640y5t3; ring s=536870909,(x,y,t),dp; poly p2 = 3842432640y5t3; poly p1 = fetch(r, p1); p1-p2;

I get the strange answer --24y5t3 (instead of 0)

If I use * I get the correct answer ring r=0,(x,y,t),dp; poly p1 = 3842432640*y5t3; ring s=536870909,(x,y,t),dp; poly p2 = 3842432640*y5t3; poly p1 = fetch(r, p1); p1-p2;

Attachments (1)

bug.txt (1.1 KB) - added by slaplagne@… 11 years ago.
Singular session where the bug appears

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by slaplagne@…

Attachment: bug.txt added

Singular session where the bug appears

comment:1 Changed 11 years ago by hannes

Resolution: fixed
Status: newclosed

integer overflow while reading the coefficient (it is larger than int). fixed with rev. 14402

Note: See TracTickets for help on using tickets.