Changeset 00f47b in git for Singular/matpol.cc


Ignore:
Timestamp:
Mar 11, 1999, 5:32:55 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
e1fb6deecf2002e305a7f34e78491c3ea101a3b2
Parents:
f99917fc47a2b22bde5ec1bddc687567f3cd4dba
Message:
*hannes: fixed mpCoefProc


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

Legend:

Unmodified
Added
Removed
  • Singular/matpol.cc

    rf99917f r00f47b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: matpol.cc,v 1.22 1999-03-11 15:58:08 Singular Exp $ */
     4/* $Id: matpol.cc,v 1.23 1999-03-11 16:32:55 Singular Exp $ */
    55
    66/*
     
    831831        }
    832832      }
    833       if (i == l) 
     833      if (i == l)
    834834      {
    835835        // check monom 1 last:
    836         h = mpExdiv(f, MATELEM(co,1,pos_of_1));
    837         if (h!=NULL)
     836        if (pos_of_1 != -1)
    838837        {
    839           MATELEM(co,2,pos_of_1) = pAdd(MATELEM(co,2,pos_of_1), h);
    840           break;
     838          h = mpExdiv(f, MATELEM(co,1,pos_of_1));
     839          if (h!=NULL)
     840          {
     841            MATELEM(co,2,pos_of_1) = pAdd(MATELEM(co,2,pos_of_1), h);
     842          }
    841843        }
    842844        break;
    843       } 
     845      }
    844846      i ++;
    845847    }
Note: See TracChangeset for help on using the changeset viewer.