Changeset 87e1de in git for factory/cf_factor.cc


Ignore:
Timestamp:
Apr 18, 1997, 5:58:18 PM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0d500e67330f37dbdcb7821411be8069d1e124da
Parents:
077e9c8cfe9c1a0c5fe1f9f503c15385a22cb040
Message:
o new function sqrFree( f, sort ) added which sorts the
  resulting list of squarefree factors by degree and joins
  factors occuring in the list to the same exponent


git-svn-id: file:///usr/local/Singular/svn/trunk@179 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factor.cc

    r077e9c r87e1de  
    11// emacs edit mode for this file is -*- C++ -*-
    2 // $Id: cf_factor.cc,v 1.2 1997-04-07 15:02:42 schmidt Exp $
     2// $Id: cf_factor.cc,v 1.3 1997-04-18 15:58:18 schmidt Exp $
    33
    44/*
    55$Log: not supported by cvs2svn $
     6Revision 1.2  1997/04/07 15:02:42  schmidt
     7#include <config.h> added
     8
    69Revision 1.1  1997/03/18 14:43:52  schmidt
    710Removed test on MULTIFACTOR #define
     
    6669}
    6770
     71CFFList sqrFree ( const CanonicalForm & f, bool sort )
     72{
     73//    ASSERT( f.isUnivariate(), "multivariate factorization not implemented" );
     74    CFFList result;
     75
     76    if ( getCharacteristic() == 0 )
     77        result = sqrFreeZ( f );
     78    else
     79        result = sqrFreeFp( f );
     80
     81    return ( sort ? sortCFFList( result ) : result );
     82}
     83
    6884CFFList sqrFree ( const CanonicalForm & f )
    6985{
    70 //    ASSERT( f.isUnivariate(), "multivariate factorization not implemented" );
    71     if ( getCharacteristic() == 0 )
    72         return sqrFreeZ( f );
    73     else
    74         return sqrFreeFp( f );
     86    return sqrFree( f, false );
    7587}
    7688
Note: See TracChangeset for help on using the changeset viewer.