Changeset f52924 in git


Ignore:
Timestamp:
Feb 26, 2007, 12:43:07 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
89e45baf4d2e90881d5361455ba0740b56975eb7
Parents:
8120f8d31249d952812c48928a245fe445f5abd1
Message:
*hannes: naNormalize again


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

Legend:

Unmodified
Added
Removed
  • kernel/longalg.cc

    r8120f8 rf52924  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.24 2007-02-22 14:52:40 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.25 2007-02-26 11:43:07 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    6666static int napExpi(int i, napoly a, napoly b);
    6767static ring nacRing;
    68 #define NA_NORMALIZE_CNT 3
     68#define NA_NORMALIZE_CNT 5
    6969static inline void naNormalize0(number &pp)
    7070{
     
    7373  {
    7474    p->cnt++;
    75     if (p->cnt>NA_NORMALIZE_CNT) naNormalize(pp);
     75    if ((p->cnt>NA_NORMALIZE_CNT)
     76    //|| (currRing->minpoly!=NULL)
     77    //|| ((p->n!=NULL) && (p->cnt>1))
     78    )
     79      naNormalize(pp);
    7680  }
    7781}
     
    12781282    lo->s = 0;
    12791283    number luu=(number)lo;
    1280     naNormalize0(luu);
     1284    naNormalize(luu);
    12811285    lo=(lnumber)luu;
    12821286  }
Note: See TracChangeset for help on using the changeset viewer.