Changeset 512a2b in git for Singular/polys1.cc


Ignore:
Timestamp:
Sep 18, 2000, 11:19:39 AM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d1655e92ca71fb37d1b57af88efdff5b65b8988b
Parents:
f3398d316400fe1ee1677fc397cacb80566ac664
Message:
p_polys.h


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

Legend:

Unmodified
Added
Removed
  • Singular/polys1.cc

    rf3398d r512a2b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys1.cc,v 1.45 2000-09-12 16:01:12 obachman Exp $ */
     4/* $Id: polys1.cc,v 1.46 2000-09-18 09:19:30 obachman Exp $ */
    55
    66/*
     
    1515#include "tok.h"
    1616#include "numbers.h"
    17 #include <omalloc.h>
     17#include "omalloc.h"
    1818#include "febase.h"
    1919#include "weight.h"
     
    302302    pMonMult(b,tail);
    303303  }
    304   pDelete1(&tail);
     304  pDeleteLm(&tail);
    305305  pNext(res) = b;
    306306  pNext(b) = NULL;
     
    313313//   if(nIsZero(pGetCoeff(pNext(tail))))
    314314//   {
    315 //     pDelete1(&pNext(tail));
     315//     pDeleteLm(&pNext(tail));
    316316//   }
    317317//   else
     
    455455    if (pGetExp(a,k)!=0)
    456456    {
    457       f = pInit(a);
     457      f = pLmInit(a);
    458458      t = nInit(pGetExp(a,k));
    459459      pSetCoeff0(f,nMult(t,pGetCoeff(a)));
    460460      nDelete(&t);
    461461      if (nIsZero(pGetCoeff(f)))
    462         pDelete1(&f);
     462        pDeleteLm(&f);
    463463      else
    464464      {
     
    493493    {
    494494      nDelete(&n);
    495       pDelete1(&p);
     495      pDeleteLm(&p);
    496496      return NULL;
    497497    }
     
    653653    pSetCoeff0(rc,nInit(i));
    654654    if (nIsZero(pGetCoeff(rc)))
    655       pDelete1(&rc);
     655      pDeleteLm(&rc);
    656656  }
    657657  return rc;
     
    10161016    if (nIsZero(pGetCoeff(qq)))
    10171017    {
    1018       pDelete1(&qq);
     1018      pDeleteLm(&qq);
    10191019    }
    10201020    else
     
    10421042          {
    10431043            /* this variable maps to 0 !*/
    1044             pDelete1(&qq);
     1044            pDeleteLm(&qq);
    10451045            break;
    10461046          }
     
    13331333  while ((p1 != NULL) && (p2 != NULL))
    13341334  {
    1335     /* p1 and p2 are non-NULL, so we may use pLmCmp instead of pComp */
    13361335    if (! pLmEqual(p1, p2))
    1337        return FALSE;
     1336      return FALSE;
     1337    if (! nEqual(pGetCoeff(p1), pGetCoeff(p2)))
     1338      return FALSE;
    13381339    pIter(p1);
    13391340    pIter(p2);
     
    13501351  number n,nn;
    13511352  int i;
    1352 
    1353   if (!pEqual(p1,p2)) //compare leading mons
     1353  pAssume(p1 != NULL && p2 != NULL);
     1354 
     1355  if (!pLmEqual(p1,p2)) //compare leading mons
    13541356      return FALSE;
    13551357  if ((pNext(p1)==NULL) && (pNext(p2)!=NULL))
     
    13621364  while ((p1 != NULL) /*&& (p2 != NULL)*/)
    13631365  {
    1364     if ( ! pEqual(p1, p2))
     1366    if ( ! pLmEqual(p1, p2))
    13651367    {
    13661368        nDelete(&n);
Note: See TracChangeset for help on using the changeset viewer.