Changeset c67591 in git


Ignore:
Timestamp:
Dec 9, 2014, 11:01:31 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
a7d85a27017c3608979fad1bd844efd0375f1bd7
Parents:
05e73920ce04956d9a1cfb78192a4aeafb5f5b70
Message:
fix simplifyIdeal (char 2)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/primdec.lib

    r05e7392 rc67591  
    28282828  }
    28292829  homo=homog(i);
    2830   if(homo==1)
     2830  if(homo)
    28312831  {
    28322832    if(attrib(i,"isSB")!=1)
     
    41834183  def r=basering;
    41844184
    4185   int j,k;
    4186   map phi;
    4187   poly p;
    4188 
    41894185  ideal iwork=i;
    4190   ideal imap1=maxideal(1);
    41914186  ideal imap2=maxideal(1);
    41924187
    41934188
    4194   for(j=1;j<=nvars(basering);j++)
    4195   {
    4196     for(k=1;k<=size(i);k++)
    4197     {
    4198       if(deg(iwork[k]/var(j))==0)
    4199       {
    4200         p=-1/leadcoef(iwork[k]/var(j))*iwork[k];
    4201         imap1[j]=p+2*var(j);
    4202         phi=r,imap1;
    4203         iwork=phi(iwork);
    4204         iwork=subst(iwork,var(j),0);
    4205         iwork[k]=var(j);
    4206         imap1=maxideal(1);
    4207         imap2[j]=-p;
    4208         break;
     4189  if (char(r)!=2)
     4190  {
     4191    int j,k;
     4192    map phi;
     4193    poly p;
     4194    ideal imap1=maxideal(1);
     4195    for(j=1;j<=nvars(basering);j++)
     4196    {
     4197      for(k=1;k<=ncols(i);k++)
     4198      {
     4199        if(deg(iwork[k]/var(j))==0)
     4200        {
     4201          p=-1/leadcoef(iwork[k]/var(j))*iwork[k];
     4202          imap1[j]=p+2*var(j);
     4203          phi=r,imap1;
     4204          iwork=phi(iwork);
     4205          iwork=subst(iwork,var(j),0);
     4206          iwork[k]=var(j);
     4207          imap1=maxideal(1);
     4208          imap2[j]=-p;
     4209          break;
     4210        }
    42094211      }
    42104212    }
     
    58635865  ASSUME(0, not isQuotientRing(basering) ) ;
    58645866  dbprint(printlevel - voice, "Radical, version 2006.05.08");
     5867  if(size(i) == 0){return(ideal(0));}
    58655868  if(attrib(basering,"global")!=1)
    58665869  {
     
    58775880      return(j);
    58785881  }
    5879   if(size(i) == 0){return(ideal(0));}
    58805882  int j;
    58815883  def P0 = basering;
Note: See TracChangeset for help on using the changeset viewer.