Changeset 41e149 in git


Ignore:
Timestamp:
Apr 8, 1998, 2:42:17 PM (25 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
b994f697e8945275c9cdcc48299751c3a7c02a1a
Parents:
e3cab3223ca48edb3c313973c3907bd9a256f319
Message:
no special pDivisibleBy for macintosh


git-svn-id: file:///usr/local/Singular/svn/trunk@1360 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/polys.cc

    re3cab3 r41e149  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.20 1998-03-31 12:18:45 obachman Exp $ */
     4/* $Id: polys.cc,v 1.21 1998-04-08 12:42:17 pohl Exp $ */
    55
    66/*
     
    17181718
    17191719/*2
    1720 * returns TRUE if the head term of b is a multiple of the head term of a
    1721 */
    1722 #if defined(macintosh)
    1723 BOOLEAN pDivisibleBy(poly a, poly b)
    1724 {
    1725   if ((a!=NULL)&&(( pGetComp(a)==0) || ( pGetComp(a) ==  pGetComp(b))))
    1726   {
    1727     int i=pVariables;
    1728     Exponent_t *e1=&( pGetExp(a,1));
    1729     Exponent_t *e2=&( pGetExp(b,1));
    1730     if ((*e1) > (*e2)) return FALSE;
    1731     do
    1732     {
    1733       i--;
    1734       if (i == 0) return TRUE;
    1735       e1++;
    1736       e2++;
    1737      } while ((*e1) <= (*e2));
    1738    }
    1739    return FALSE;
    1740 }
    1741 #endif
    1742 
    1743 
    1744 /*2
    17451720* assumes that the head term of b is a multiple of the head term of a
    17461721* and return the multiplicant *m
  • Singular/polys.h

    re3cab3 r41e149  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: polys.h,v 1.11 1998-03-23 22:51:05 obachman Exp $ */
     6/* $Id: polys.h,v 1.12 1998-04-08 12:41:37 pohl Exp $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials
     
    213213// returns TRUE, if leading monom of a divides leading monom of b
    214214// i.e., if there exists a expvector c > 0, s.t. b = a + c
    215 #if defined(macintosh)
    216 BOOLEAN   pDivisibleBy(poly a, poly b);
    217 #else
    218215#define pDivisibleBy(a, b)  _pDivisibleBy(a,b)
    219 #endif
    220216// like pDivisibleBy, except that it is assumed that a!=NULL
    221217#define pDivisibleBy1(a,b)   _pDivisibleBy1(a,b)
Note: See TracChangeset for help on using the changeset viewer.