Changeset 8df5991 in git


Ignore:
Timestamp:
Dec 9, 2020, 1:51:10 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
4a1b76a2ee72e1a9605d599b5dbc8ca819d36de8
Parents:
fef0b200e27e566748aefee86ca6f0f32e2dd61b
Message:
fix: division for letterplace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    rfef0b20 r8df5991  
    4242    return NULL;
    4343  }
    44   if ((pNext(q)!=NULL)||rIsNCRing(r))
     44  if ((pNext(q)!=NULL)||rIsPluralRing(r))
    4545  { /* This means that q != 0 consists of at least two terms*/
    4646    if(p_GetComp(p,r)==0)
     
    159159  }
    160160  else
    161   { /* This means that q != 0 consists of just one term */
     161  { /* This means that q != 0 consists of just one term, or LetterPlace */
     162#ifdef HAVE_RINGS
     163    if (pNext(q)!=NULL)
     164    {
     165      WerrorS("division over a coefficient domain only implemented for terms");
     166      return NULL;
     167    }
     168#endif
    162169    return p_DivideM(p,q,r);
    163170  }
     
    177184    return NULL;
    178185  }
    179   if ((pNext(q)!=NULL)||rIsNCRing(r))
     186  if ((pNext(q)!=NULL)||rIsPluralRing(r))
    180187  { /* This means that q != 0 consists of at least two terms*/
    181188    if(p_GetComp(p,r)==0)
     
    295302       or that r is over a coefficient ring. */
    296303#ifdef HAVE_RINGS
    297     if (!rField_is_Domain(r))
    298     {
    299       WerrorS("division only defined over coefficient domains");
    300       return NULL;
    301     }
    302304    if (pNext(q)!=NULL)
    303305    {
Note: See TracChangeset for help on using the changeset viewer.