Changeset 36652d8 in git for factory/fac_sqrfree.cc
- Timestamp:
- Jun 26, 1996, 3:15:28 PM (27 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- af4c5612a18aeb436641ed03ae4ea4fb66c029dc
- Parents:
- 95f247516b202e419d274f3f954f152ab83c4184
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/fac_sqrfree.cc
r95f247 r36652d8 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: fac_sqrfree.cc,v 1. 1 1996-05-20 13:39:48 stobbe Exp $2 // $Id: fac_sqrfree.cc,v 1.2 1996-06-26 13:15:28 stobbe Exp $ 3 3 4 4 #include "assert.h" … … 8 8 /* 9 9 $Log: not supported by cvs2svn $ 10 Revision 1.1 1996/05/20 13:39:48 stobbe 11 "sqrFree: Now the product of all factors found by sqrFree is equal to the 12 parameter of sqrFree. The bug resulted from an incorrect handling 13 of the leading coefficient of the argument of sqrFree. 14 " 15 10 16 // Revision 1.0 1996/05/17 10:59:45 stobbe 11 17 // Initial revision … … 128 134 else 129 135 F.append( CFFactor( w, i ) ); 130 if ( ! cont.isOne() ) 131 return Union( F, sqrFreeZ( cont ) ); 132 else 133 return F; 136 if ( ! cont.isOne() && ! cont.inCoeffDomain() ) 137 F = Union( F, sqrFreeZ( cont ) ); 138 if ( lc( a ).sign() < 0 ) { 139 if ( F.getFirst().exp() == 1 ) { 140 CanonicalForm f = F.getFirst().factor(); 141 CFFListIterator(F).getItem() = CFFactor( -f, 1 ); 142 } 143 else 144 F.insert( CFFactor( -1, 1 ) ); 145 } 146 return F; 134 147 }
Note: See TracChangeset
for help on using the changeset viewer.