Changeset 3d0808 in git for libpolys/polys/monomials
- Timestamp:
- Apr 13, 2011, 3:12:04 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 6f3273cb5116675e456582b1c2212f8e506ff61d
- Parents:
- c9c1186ff876027a15ba78ce440c0206aa356e29
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-13 15:12:04+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:12:31+01:00
- Location:
- libpolys/polys/monomials
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
rc9c118 r3d0808 1401 1401 return result; 1402 1402 } 1403 1404 #ifdef HAVE_RINGS 1405 /* TRUE iff LT(f) | LT(g) */ 1406 BOOLEAN p_DivisibleByRingCase(poly f, poly g, const ring r) 1407 { 1408 int exponent; 1409 for(int i = (int)rVar(r); i>0; i--) 1410 { 1411 exponent = p_GetExp(g, i, r) - p_GetExp(f, i, r); 1412 if (exponent < 0) return FALSE; 1413 } 1414 return n_DivBy(pGetCoeff(g), pGetCoeff(f), r->cf); 1415 } 1416 #endif 1403 1417 1404 1418 /*2 -
libpolys/polys/monomials/p_polys.h
rc9c118 r3d0808 68 68 ***************************************************************/ 69 69 unsigned long p_GetShortExpVector(poly a, ring r); 70 /* divisibility check over ground ring (which may contain zero divisors); 71 TRUE iff LT(f) divides LT(g), i.e., LT(f)*c*m = LT(g), for some 72 coefficient c and some monomial m; 73 does not take components into account */ 74 #ifdef HAVE_RINGS 75 BOOLEAN p_DivisibleByRingCase(poly f, poly g, const ring r); 76 #endif 70 77 71 78 /***************************************************************
Note: See TracChangeset
for help on using the changeset viewer.