Changeset 8e0cdf in git


Ignore:
Timestamp:
Mar 18, 2008, 11:12:21 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
632ebaadeab150457fe8f05a66d352685c6506af
Parents:
f12cd236d42ce7c576d7f5b8ea25484f5875c740
Message:
*hannes: format


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

Legend:

Unmodified
Added
Removed
  • libfac/factor/Factor.cc

    rf12cd23 r8e0cdf  
    11/* Copyright 1996 Michael Messollen. All rights reserved. */
    22///////////////////////////////////////////////////////////////////////////////
    3 static char * rcsid = "$Id: Factor.cc,v 1.42 2008-03-17 17:44:16 Singular Exp $ ";
     3static char * rcsid = "$Id: Factor.cc,v 1.43 2008-03-18 10:12:21 Singular Exp $ ";
    44static char * errmsg = "\nYou found a bug!\nPlease inform (Michael Messollen) michael@math.uni-sb.de \nPlease include above information and your input (the ideal/polynomial and characteristic) in your bug-report.\nThank you.";
    55///////////////////////////////////////////////////////////////////////////////
     
    733733  for ( int i=1; i<=level(F); i++)
    734734  {
    735     if ( degree(f,Variable(i) ) == 1 ) 
     735    if ( degree(f,Variable(i) ) == 1 )
    736736    //test trivial case; only true iff F is primitiv w.r.t every variable; else check (if F=ax+b) gcd(a,b)=1 ?
    737737    {
     
    10351035static bool fdivides2(const CanonicalForm &F, const CanonicalForm &G, const CanonicalForm &minpoly)
    10361036{
    1037   if (minpoly!=0)
     1037  if (!minpoly.isZero())
    10381038  {
    10391039  #if 0
     
    11611161    Outputlist= factorize(F);
    11621162    #else
    1163     if (minpoly!=0)
     1163    if (!minpoly.isZero())
    11641164    {
    11651165      if ( F.isHomogeneous() )
     
    11741174      {
    11751175        CFList as(minpoly);
    1176         CFFList sqF=sqrFree(F); // sqrFreeZ
     1176        //CFFList sqF=sqrFree(F); // sqrFreeZ
     1177        CFFList sqF=SqrFreeMV(F,minpoly);
     1178        if (sqF.isEmpty()) sqF=sqrFree(F);
    11771179        CFFList G,H;
    11781180        CanonicalForm fac;
     
    11951197      }
    11961198    }
    1197     else
     1199    else // minpoly==0
    11981200      Outputlist=factorize(F);
    11991201    #endif
     
    12881290  DEBOUTLN(CERR, "Outputlist is ", Outputlist);
    12891291  for ( i=Outputlist; i.hasItem(); i++ )
    1290     if ( level(i.getItem().factor()) > 0 ){
     1292    if ( level(i.getItem().factor()) > 0 )
     1293    {
    12911294      unit = lc(i.getItem().factor());
    12921295      if ( getNumVars(unit) == 0 ){ // a constant; possibly 1
     
    12941297        g *=power(i.getItem().factor()/unit,i.getItem().exp());
    12951298      }
    1296       else{
     1299      else
     1300      {
    12971301        Outputlist2.append(i.getItem());
    12981302        g *=power(i.getItem().factor(),i.getItem().exp());
     
    13311335/*
    13321336$Log: not supported by cvs2svn $
     1337Revision 1.42  2008/03/17 17:44:16  Singular
     1338*hannes: fact.tst
     1339
    13331340Revision 1.38  2008/01/07 13:34:56  Singular
    13341341*hannes: omse optiomzations(isOne)
Note: See TracChangeset for help on using the changeset viewer.