On Fri, Aug 19, 2016 at 03:39:33AM -0700, Jean-Pierre Flori wrote:
> Dear all,
>
> In char 2, it seems that the way Singular prints monomials changed in
> version 4 and now prints 1*x instead of "just" x.
...
I cannot reproduce this behaviour: do you have an example?
> ring r=2,x,dp;
> poly p=x;
> p;
x
> p=x2+x+1;
> p;
x^2+x+1
n_IsMOne is only used for printing, and npIsMOne (which is used in char
2) gives FALSE for 1 (in contrast to its name).
see:
BOOLEAN npIsMOne (number a, const coeffs r)
{
n_Test(a, r);
return ((r->npPminus1M == (long)a)&&(1L!=(long)a));
}
Hans