Changeset ab26fe in git


Ignore:
Timestamp:
Feb 8, 2001, 2:46:36 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b87095a7ec423369604377fde5a390f610c25064
Parents:
cd9bd11338310a68a7f540822564453a1bdc9889
Message:
*hannes: fixed pJet


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

Legend:

Unmodified
Added
Removed
  • Singular/polys1.cc

    rcd9bd1 rab26fe  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys1.cc,v 1.63 2001-02-08 13:13:04 Singular Exp $ */
     4/* $Id: polys1.cc,v 1.64 2001-02-08 13:46:36 Singular Exp $ */
    55
    66/*
     
    11361136poly pJet(poly p, int m)
    11371137{
     1138  poly t=NULL;
     1139
     1140  while((p!=NULL) && (pTotaldegree(p)>m)) pLmDelete(&p);
     1141  if (p==NULL) return NULL;
    11381142  poly r=p;
    1139   poly t=NULL;
    1140 
    1141   while (p!=NULL)
    1142   {
    1143     if (pTotaldegree(p)>m)
    1144     {
    1145       if (p==r)
    1146       {
    1147         pLmDelete(&p);
    1148         r=p;
    1149       }
    1150       else
    1151       {
    1152         pLmDelete(&p);
    1153       }
    1154     }
    1155     pIter(p);
     1143  while (pNext(p)!=NULL)
     1144  {
     1145    if (pTotaldegree(pNext(p))>m)
     1146    {
     1147      pLmDelete(&pNext(p));
     1148    }
     1149    else
     1150      pIter(p);
    11561151  }
    11571152  return r;
Note: See TracChangeset for help on using the changeset viewer.