Changeset 6594d4 in git


Ignore:
Timestamp:
Sep 23, 1998, 7:07:45 PM (25 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
073d2edeb03013a5c6ed0913687b024305a1427d
Parents:
7709bf1f0117c77f62572e798d2164f8f0a773a4
Message:
	* fac_ezgcd.cc (ezgcd_specialcase): bug fix (???).  See comments
	  in the file for more information.


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

Legend:

Unmodified
Added
Removed
  • factory/fac_ezgcd.cc

    r7709bf r6594d4  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: fac_ezgcd.cc,v 1.11 1998-03-12 14:30:50 schmidt Exp $ */
     2/* $Id: fac_ezgcd.cc,v 1.12 1998-09-23 17:07:45 schmidt Exp $ */
    33
    44#include <config.h>
     
    159159    DEBOUTLN( cerr, "ezgcdspec: (S1)" );
    160160    Ft = ezgcd( F, F.deriv( x ) );
     161    if ( Ft.isOne() ) {
     162        // In this case F is squarefree and we came here by bad chance
     163        // (means: bad evaluation point).  Try again with another
     164        // evaluation point.  Bug fix (?) by JS.  The bad example was
     165        // gcd.debug -ocr /+USE_EZGCD/@12/CB \
     166        //     '(16*B^8-208*B^6*C+927*B^4*C^2-1512*B^2*C^3+432*C^4)' \
     167        //     '(4*B^7*C^2-50*B^5*C^3+208*B^3*C^4-288*B*C^5)'
     168        b.nextpoint();
     169        return ezgcd( F, G, b, true );
     170    }
     171           
    161172    DEBOUTLN( cerr, "ezgcdspec: (S1) done, Ft = " << Ft );
    162173    L = F / Ft;
    163174    /// ---> S2
    164175    DEBOUTLN( cerr, "ezgcdspec: (S2)" );
     176
    165177    L = ezgcd( L, G, b, true );
    166178    DEBOUTLN( cerr, "ezgcdspec: (S2) done, Ds = " << Ds );
Note: See TracChangeset for help on using the changeset viewer.