Changeset 70f96b in git


Ignore:
Timestamp:
Mar 30, 2010, 2:03:44 PM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
bafaec06ad6c0ad7c4cfd41d9d18f7974282ddf3
Parents:
2e1b74af4c420fc8a67df76abb2cc0c8da9990db
Message:
enabled division 'poly / single-term poly' over coefficient rings which are domains, i.e., so far only over the ring Z

git-svn-id: file:///usr/local/Singular/svn/trunk@12693 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r2e1b74 r70f96b  
    13061306    return FALSE;
    13071307  }
    1308   if (pNext(q)!=NULL)
    1309   {
     1308  if ((pNext(q)!=NULL) && (!rField_is_Ring()))
     1309  { /* This means that q != 0 consists of at least two terms.
     1310       Moreover, currRing is over a field. */
    13101311#ifdef HAVE_FACTORY
    13111312    if(pGetComp(p)==0)
     
    13521353  }
    13531354  else
    1354   {
     1355  { /* This means that q != 0 consists of just one term,
     1356       or that currRing is over a coefficient ring. */
     1357#ifdef HAVE_RINGS
     1358    if (!rField_is_Domain())
     1359    {
     1360      WerrorS("division only defined over coefficient domains");
     1361      return TRUE;
     1362    }
     1363    if (pNext(q)!=NULL)
     1364    {
     1365      WerrorS("division over a coefficient domain only implemented for terms");
     1366      return TRUE;
     1367    }
     1368#endif
    13551369    res->data = (char *)pDivideM(pCopy(p),pHead(q));
    13561370  }
     
    34033417,{jjTIMES_IV,  '*',            INTMAT_CMD,     INTVEC_CMD, INTMAT_CMD, ALLOW_PLURAL | ALLOW_RING}
    34043418,{jjDIV_N,     '/',            NUMBER_CMD,     NUMBER_CMD, NUMBER_CMD, ALLOW_PLURAL | ALLOW_RING}
    3405 ,{jjDIV_P,     '/',            POLY_CMD,       POLY_CMD,   POLY_CMD, ALLOW_PLURAL | NO_RING}
    3406 ,{jjDIV_P,     '/',            VECTOR_CMD,     VECTOR_CMD, POLY_CMD, ALLOW_PLURAL | NO_RING}
     3419,{jjDIV_P,     '/',            POLY_CMD,       POLY_CMD,   POLY_CMD, ALLOW_PLURAL | ALLOW_RING}
     3420,{jjDIV_P,     '/',            VECTOR_CMD,     VECTOR_CMD, POLY_CMD, ALLOW_PLURAL | ALLOW_RING}
    34073421,{jjDIV_Ma,    '/',            MATRIX_CMD,     MATRIX_CMD, POLY_CMD, ALLOW_PLURAL | NO_RING}
    34083422,{jjDIVMOD_I,  '/',            INT_CMD,        INT_CMD,    INT_CMD, ALLOW_PLURAL | ALLOW_RING}
Note: See TracChangeset for help on using the changeset viewer.