Changeset 0d7584 in git


Ignore:
Timestamp:
Mar 12, 1999, 11:16:21 AM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c56a239d65d152c070411a26481b1ea32dae2bc6
Parents:
e1fb6deecf2002e305a7f34e78491c3ea101a3b2
Message:
*hannes: fixed highcorner


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    re1fb6d r0d7584  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.134 1999-03-11 15:58:05 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.135 1999-03-12 10:16:21 Singular Exp $ */
    55
    66/*
     
    25152515{
    25162516  assumeStdFlag(v);
    2517   intvec *module_w=new intvec(*(intvec*)atGet(v,"isHomog"));
     2517  intvec *w=(intvec*)atGet(v,"isHomog");
     2518  intvec *module_w=NULL;
    25182519  ideal I=(ideal)v->Data();
    25192520  int i;
    25202521  poly p=NULL,po=NULL;
    25212522  int rk=idRankFreeModule(I);
    2522   if (module_w==NULL)
     2523  if (w!=NULL)
     2524    module_w=new intvec(*w);
     2525  else
    25232526    module_w = new intvec(rk);
    25242527  for(i=rk;i>0;i--)
     
    25362539    {
    25372540      // now po!=NULL, p!=NULL
    2538       int d=(pFDeg(po)+(*module_w)[pGetComp(po)] - pFDeg(p)+ (*module_w)[i]);
     2541      int d=(pFDeg(po)+(*module_w)[pGetComp(po)-1] - pFDeg(p)+(*module_w)[i-1]);
    25392542      if (d==0)
    25402543        d=pComp0(po,p);
Note: See TracChangeset for help on using the changeset viewer.