Changeset 116a98 in git


Ignore:
Timestamp:
Nov 19, 1997, 2:08:11 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c2b784d2a361f4e8e390743e963f669b3e9b6b5d
Parents:
2adb1c3c7f1cce8d55c4699a9c007c51944eb78c
Message:
* hannes: fix to writemon (polys0.cc): x+-y, x(-1)y etc.


git-svn-id: file:///usr/local/Singular/svn/trunk@914 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/longalg.cc

    r2adb1c r116a98  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.14 1997-11-18 16:10:42 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.15 1997-11-19 13:08:10 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    17691769  mmTestP(a,sizeof(rnumber));
    17701770#ifdef TEST
    1771   if (a->z==NULL) WerrorS("internal zero error(5)");
     1771  if (a->z==NULL)
     1772  {
     1773    WerrorS("internal zero error(5)");
     1774    return FALSE;
     1775  }
    17721776#endif
    17731777  if (a->n==NULL)
  • Singular/polys0.cc

    r2adb1c r116a98  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys0.cc,v 1.5 1997-07-02 16:44:14 Singular Exp $ */
     4/* $Id: polys0.cc,v 1.6 1997-11-19 13:08:11 Singular Exp $ */
    55
    66/*
     
    2727  BOOLEAN wroteCoef=FALSE,writeGen=FALSE;
    2828
    29   if ((pIsConstantComp(p))
     29  nNormalize(pGetCoeff(p));
     30
     31  if (((pGetComp(p) == (short)ko)
     32    &&(pIsConstantComp(p)))
    3033  || ((!nIsOne(pGetCoeff(p)))
    31       && (!nIsMOne(pGetCoeff(p)))
    32     )
     34    && (!nIsMOne(pGetCoeff(p)))
     35  )
    3336#ifdef DRING
    3437  || (pDRING && pdIsConstantComp(p))
     
    5255#endif
    5356    {
    54       short ee = p->exp[i+1];
     57      short ee = pGetExp(p,i+1);
    5558      if (ee!=0)
    5659      {
     
    7982    }
    8083  }
    81   if (p->exp[0] != (short)ko)
     84  if (pGetComp(p) != (short)ko)
    8285  {
    8386    if (writeGen) StringAppendS("*");
    84     StringAppend("gen(%d)", p->exp[0]);
     87    StringAppend("gen(%d)", pGetComp(p));
    8588  }
    8689}
Note: See TracChangeset for help on using the changeset viewer.