Overflow in echoing large numbers from coefficient rings
Hi!
Large numbers from Z/2^{n are not printed correctly:
}
dreyer@lts035:x86_64Linux> ./Singular
SINGULAR /
A Computer Algebra System for Polynomial Computations / version 314
0<
by: W. Decker, G.M. Greuel, G. Pfister, H. Schoenemann \ Jan 2012
FB Mathematik der Universitaet, D67653 Kaiserslautern \
> ring r=(integer,2,33),(dummy),lp;
> number num=number(2)^32;num;
0
> num/2;
2147483648
> number(2)^31;
2147483648
We can see from the last two commands that number stores the information (here 2^32
) correctly. Just the output goes wrong (overflow?),
Change History (6)
Description: 
modified (diff)

Owner: 
changed from somebody to hans

Owner: 
changed from hans to hannes

Resolution: 
→ fixed

Status: 
new →
closed

Even worse: Singular forgets "+" between terms in some case:
So the output pretends that
var_10}} exists twice. Note that Singular 310 (Mar 2009) prints {{{0*var_10*var_10
in this case. (But it already had problems with the output of large numbers).