Changeset 41e149 in git
- Timestamp:
- Apr 8, 1998, 2:42:17 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- b994f697e8945275c9cdcc48299751c3a7c02a1a
- Parents:
- e3cab3223ca48edb3c313973c3907bd9a256f319
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys.cc
re3cab3 r41e149 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1.2 0 1998-03-31 12:18:45 obachmanExp $ */4 /* $Id: polys.cc,v 1.21 1998-04-08 12:42:17 pohl Exp $ */ 5 5 6 6 /* … … 1718 1718 1719 1719 /*2 1720 * returns TRUE if the head term of b is a multiple of the head term of a1721 */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 do1732 {1733 i--;1734 if (i == 0) return TRUE;1735 e1++;1736 e2++;1737 } while ((*e1) <= (*e2));1738 }1739 return FALSE;1740 }1741 #endif1742 1743 1744 /*21745 1720 * assumes that the head term of b is a multiple of the head term of a 1746 1721 * and return the multiplicant *m -
Singular/polys.h
re3cab3 r41e149 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: polys.h,v 1.1 1 1998-03-23 22:51:05 obachmanExp $ */6 /* $Id: polys.h,v 1.12 1998-04-08 12:41:37 pohl Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate polynomials … … 213 213 // returns TRUE, if leading monom of a divides leading monom of b 214 214 // 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 #else218 215 #define pDivisibleBy(a, b) _pDivisibleBy(a,b) 219 #endif220 216 // like pDivisibleBy, except that it is assumed that a!=NULL 221 217 #define pDivisibleBy1(a,b) _pDivisibleBy1(a,b)
Note: See TracChangeset
for help on using the changeset viewer.