Changeset 8fc55e2 in git for kernel/clapsing.cc


Ignore:
Timestamp:
Feb 11, 2009, 3:56:16 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
c5d8ddb1112344ad68257ea0c296d5b17aee0433
Parents:
fb2a0c9a162edde64cee86932710bc946dd583dc
Message:
*hannes: set wrong factors to 1


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

Legend:

Unmodified
Added
Removed
  • kernel/clapsing.cc

    rfb2a0c r8fc55e2  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.32 2008-12-17 15:08:50 Singular Exp $
     5// $Id: clapsing.cc,v 1.33 2009-02-11 14:56:16 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    195195
    196196
    197 
     197void out_cf(char *s1,const CanonicalForm &f,char *s2);
    198198
    199199
     
    259259      #endif
    260260      {
    261         bool b=isOn(SW_USE_QGCD);
    262         if ( nGetChar()==1 ) On(SW_USE_QGCD);
     261        bool b=isOn(SW_USE_QGCD);
     262        if ( nGetChar()==1 ) On(SW_USE_QGCD);
    263263        CanonicalForm mipo=convSingTrFactoryP(((lnumber)currRing->minpoly)->z);
    264264        Variable a=rootOf(mipo);
    265265        CanonicalForm F( convSingAPFactoryAP( f,a ) ), G( convSingAPFactoryAP( g,a ) );
    266266        res= convFactoryAPSingAP( gcd( F, G ) );
    267         if (!b) Off(SW_USE_QGCD);
     267        if (!b) Off(SW_USE_QGCD);
    268268      }
    269269    }
     
    971971        #endif
    972972        libfac_interruptflag=0;
    973         //else
    974         //  L=Factorize(G, mipo);
    975973#else
    976974        WarnS("complete factorization only for univariate polynomials");
     
    10321030      if (with_exps!=1) (**v)[j] = J.getItem().exp();
    10331031      if (rField_is_Zp() || rField_is_Q())           /* Q, Fp */
     1032      {
    10341033        //count_Factors(res,*v,f, j, convFactoryPSingP( J.getItem().factor() );
    10351034        res->m[j] = convFactoryPSingP( J.getItem().factor() );
     1035      }
    10361036      #if 0
    10371037      else if (rField_is_GF())
     
    10431043        if (v!=NULL) w=*v;
    10441044        if (currRing->minpoly==NULL)
    1045           count_Factors(res,w,j,ff,convFactoryPSingTrP( J.getItem().factor() ));
     1045        {
     1046          if(!count_Factors(res,w,j,ff,convFactoryPSingTrP( J.getItem().factor() )))
     1047            res->m[j]=pOne();
     1048        }
    10461049        else
    1047           count_Factors(res,w,j,ff,convFactoryAPSingAP( J.getItem().factor() ));
     1050        {
     1051          if (!count_Factors(res,w,j,ff,convFactoryAPSingAP( J.getItem().factor() )))
     1052
     1053            res->m[j]=pOne();
     1054        }
    10481055      }
    10491056    }
Note: See TracChangeset for help on using the changeset viewer.