Changeset 76352f9 in git for Singular/polys.cc


Ignore:
Timestamp:
May 6, 1998, 2:44:08 PM (25 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
e23540a2e5ead2215d0294f458da29eb5d72e4fc
Parents:
6f5ad67d98f21bbb43450bb71d0c20643b46ad9d
Message:
pDivisibleBy also for macintosh inline


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

Legend:

Unmodified
Added
Removed
  • Singular/polys.cc

    r6f5ad6 r76352f9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.25 1998-04-24 16:51:43 Singular Exp $ */
     4/* $Id: polys.cc,v 1.26 1998-05-06 12:44:08 pohl Exp $ */
    55
    66/*
     
    17211721
    17221722/*2
    1723 * returns TRUE if the head term of b is a multiple of the head term of a
    1724 */
    1725 #if defined(macintosh)
    1726 BOOLEAN pDivisibleBy(poly a, poly b)
    1727 {
    1728   if ((a!=NULL)&&(( pGetComp(a)==0) || ( pGetComp(a) ==  pGetComp(b))))
    1729   {
    1730     int i=pVariables;
    1731     Exponent_t *e1=&( pGetExp(a,1));
    1732     Exponent_t *e2=&( pGetExp(b,1));
    1733     if ((*e1) > (*e2)) return FALSE;
    1734     do
    1735     {
    1736       i--;
    1737       if (i == 0) return TRUE;
    1738       e1++;
    1739       e2++;
    1740      } while ((*e1) <= (*e2));
    1741    }
    1742    return FALSE;
    1743 }
    1744 #endif
    1745 
    1746 
    1747 /*2
    17481723* assumes that the head term of b is a multiple of the head term of a
    17491724* and return the multiplicant *m
Note: See TracChangeset for help on using the changeset viewer.