Changeset ab26fe in git
- Timestamp:
- Feb 8, 2001, 2:46:36 PM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b87095a7ec423369604377fde5a390f610c25064
- Parents:
- cd9bd11338310a68a7f540822564453a1bdc9889
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys1.cc
rcd9bd1 rab26fe 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.6 3 2001-02-08 13:13:04Singular Exp $ */4 /* $Id: polys1.cc,v 1.64 2001-02-08 13:46:36 Singular Exp $ */ 5 5 6 6 /* … … 1136 1136 poly pJet(poly p, int m) 1137 1137 { 1138 poly t=NULL; 1139 1140 while((p!=NULL) && (pTotaldegree(p)>m)) pLmDelete(&p); 1141 if (p==NULL) return NULL; 1138 1142 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); 1156 1151 } 1157 1152 return r;
Note: See TracChangeset
for help on using the changeset viewer.