Changeset 20722e4 in git for libfac/charset/csutil.cc


Ignore:
Timestamp:
Apr 28, 2006, 3:46:29 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
a285490a201ea1e883f387408479c5758aaff48f
Parents:
f45bfb991cabced656e450cbed9e85720c469e54
Message:
*hannes: better tests for 0, 1


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

Legend:

Unmodified
Added
Removed
  • libfac/charset/csutil.cc

    rf45bfb r20722e4  
    22////////////////////////////////////////////////////////////
    33// emacs edit mode for this file is -*- C++ -*-
    4 static char * rcsid = "$Id: csutil.cc,v 1.9 2003-05-28 11:52:52 Singular Exp $";
     4static char * rcsid = "$Id: csutil.cc,v 1.10 2006-04-28 13:45:29 Singular Exp $";
    55/////////////////////////////////////////////////////////////
    66// FACTORY - Includes
     
    227227 CanonicalForm rem=f;
    228228
    229  if ( rem!=0 ){
     229 if ( !(rem.isZero()) ){
    230230   if ( getCharacteristic() > 0 )
    231231     return num((rem/lc(rem)));
     
    312312
    313313  for ( CFIterator j=init; j.hasTerms(); j++ )
    314     if (j.coeff() != 1 ) count += 1;
     314    if (!(j.coeff().isOne()) ) count += 1;
    315315  //  if ( init != 1 ){
    316316  //  cout << "nopower: f is " << init << endl;
     
    873873/*
    874874$Log: not supported by cvs2svn $
     875Revision 1.9  2003/05/28 11:52:52  Singular
     876*pfister/hannes: newfactoras, alg_gcd, divide (see bug_33)
     877
    875878Revision 1.8  2002/10/24 17:22:22  Singular
    876879* hannes: factoring in alg.ext., alg_gcd, NTL stuff
Note: See TracChangeset for help on using the changeset viewer.