- Timestamp:
- Jun 1, 2008, 7:49:05 PM (16 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f2b58394b7c0b28984794adfcef85f56f72e35bf
- Parents:
- 0b85fcff1722325fd8010e4185d911f83cd46c04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/fac_sqrfree.cc
r0b85fc ree586a 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: fac_sqrfree.cc,v 1.1 1 2008-05-31 17:21:11Singular Exp $ */2 /* $Id: fac_sqrfree.cc,v 1.12 2008-06-01 17:49:05 Singular Exp $ */ 3 3 4 4 #include <config.h> … … 115 115 CFFList F; 116 116 117 while ( ! c.degree() == 0 ) { 117 while ( ! c.degree() == 0 ) 118 { 118 119 y = gcd( w, c ); z = w / y; 119 120 if ( degree( z ) > 0 ) … … 145 146 CFFList F; 146 147 Variable v = aa.mvar(); 147 while ( ! c.degree(v) == 0 ) { 148 while ( ! c.degree(v) == 0 ) 149 { 148 150 y = gcd( w, c ); z = w / y; 149 151 if ( degree( z, v ) > 0 ) … … 162 164 if ( ! cont.isOne() ) 163 165 F = Union( F, sqrFreeZ( cont ) ); 164 if ( lc( a ).sign() < 0 ) { 165 if ( F.getFirst().exp() == 1 ) { 166 if ( lc( a ).sign() < 0 ) 167 { 168 if ( F.getFirst().exp() == 1 ) 169 { 166 170 CanonicalForm f = F.getFirst().factor(); 167 171 CFFListIterator(F).getItem() = CFFactor( -f, 1 );
Note: See TracChangeset
for help on using the changeset viewer.