Changeset 512a2b in git for Singular/polys1.cc
- Timestamp:
- Sep 18, 2000, 11:19:39 AM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d1655e92ca71fb37d1b57af88efdff5b65b8988b
- Parents:
- f3398d316400fe1ee1677fc397cacb80566ac664
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys1.cc
rf3398d r512a2b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.4 5 2000-09-12 16:01:12obachman Exp $ */4 /* $Id: polys1.cc,v 1.46 2000-09-18 09:19:30 obachman Exp $ */ 5 5 6 6 /* … … 15 15 #include "tok.h" 16 16 #include "numbers.h" 17 #include <omalloc.h>17 #include "omalloc.h" 18 18 #include "febase.h" 19 19 #include "weight.h" … … 302 302 pMonMult(b,tail); 303 303 } 304 pDelete 1(&tail);304 pDeleteLm(&tail); 305 305 pNext(res) = b; 306 306 pNext(b) = NULL; … … 313 313 // if(nIsZero(pGetCoeff(pNext(tail)))) 314 314 // { 315 // pDelete 1(&pNext(tail));315 // pDeleteLm(&pNext(tail)); 316 316 // } 317 317 // else … … 455 455 if (pGetExp(a,k)!=0) 456 456 { 457 f = p Init(a);457 f = pLmInit(a); 458 458 t = nInit(pGetExp(a,k)); 459 459 pSetCoeff0(f,nMult(t,pGetCoeff(a))); 460 460 nDelete(&t); 461 461 if (nIsZero(pGetCoeff(f))) 462 pDelete 1(&f);462 pDeleteLm(&f); 463 463 else 464 464 { … … 493 493 { 494 494 nDelete(&n); 495 pDelete 1(&p);495 pDeleteLm(&p); 496 496 return NULL; 497 497 } … … 653 653 pSetCoeff0(rc,nInit(i)); 654 654 if (nIsZero(pGetCoeff(rc))) 655 pDelete 1(&rc);655 pDeleteLm(&rc); 656 656 } 657 657 return rc; … … 1016 1016 if (nIsZero(pGetCoeff(qq))) 1017 1017 { 1018 pDelete 1(&qq);1018 pDeleteLm(&qq); 1019 1019 } 1020 1020 else … … 1042 1042 { 1043 1043 /* this variable maps to 0 !*/ 1044 pDelete 1(&qq);1044 pDeleteLm(&qq); 1045 1045 break; 1046 1046 } … … 1333 1333 while ((p1 != NULL) && (p2 != NULL)) 1334 1334 { 1335 /* p1 and p2 are non-NULL, so we may use pLmCmp instead of pComp */1336 1335 if (! pLmEqual(p1, p2)) 1337 return FALSE; 1336 return FALSE; 1337 if (! nEqual(pGetCoeff(p1), pGetCoeff(p2))) 1338 return FALSE; 1338 1339 pIter(p1); 1339 1340 pIter(p2); … … 1350 1351 number n,nn; 1351 1352 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 1354 1356 return FALSE; 1355 1357 if ((pNext(p1)==NULL) && (pNext(p2)!=NULL)) … … 1362 1364 while ((p1 != NULL) /*&& (p2 != NULL)*/) 1363 1365 { 1364 if ( ! p Equal(p1, p2))1366 if ( ! pLmEqual(p1, p2)) 1365 1367 { 1366 1368 nDelete(&n);
Note: See TracChangeset
for help on using the changeset viewer.