Changeset 94a967 in git for factory/cf_algorithm.cc
- Timestamp:
- Jun 19, 2008, 5:58:18 PM (15 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 6f49c34b8c235506ef7d34be2d0cd7b9ed4f708d
- Parents:
- 4f48983e2d88ea0745d1992935e0f1c7b97642d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_algorithm.cc
r4f4898 r94a967 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: cf_algorithm.cc,v 1.1 2 2008-05-16 13:10:14Singular Exp $ */2 /* $Id: cf_algorithm.cc,v 1.13 2008-06-19 15:58:18 Singular Exp $ */ 3 3 4 4 //{{{ docu … … 348 348 int fLevel = f.level(); 349 349 int gLevel = g.level(); 350 if ( gLevel > 0 && fLevel == gLevel)350 if ( (gLevel > 0) && (fLevel == gLevel) ) 351 351 // f and g are polynomials in the same main variable 352 352 if ( degree( f ) <= degree( g ) 353 353 && fdivides( f.tailcoeff(), g.tailcoeff() ) 354 && fdivides( f.LC(), g.LC() ) ) { 354 && fdivides( f.LC(), g.LC() ) ) 355 { 355 356 CanonicalForm q, r; 356 357 return divremt( g, f, q, r ) && r.isZero(); … … 361 362 // g is a coefficient w.r.t. f 362 363 return false; 363 else { 364 else 365 { 364 366 // either f is a coefficient w.r.t. polynomial g or both 365 367 // f and g are from a base domain (should be Z or Z/p^n,
Note: See TracChangeset
for help on using the changeset viewer.