Changeset 2d19a1b in git for Singular/polys1.cc
- Timestamp:
- Feb 27, 2001, 7:06:35 PM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0936ad6711f0a6991a14ecc189209f979f6054df
- Parents:
- 8cfee1c3269a440dc074eae208795fd4da490c0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys1.cc
r8cfee1c r2d19a1b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.6 4 2001-02-08 13:46:36 SingularExp $ */4 /* $Id: polys1.cc,v 1.65 2001-02-27 18:06:35 mschulze Exp $ */ 5 5 6 6 /* … … 1185 1185 } 1186 1186 1187 int pMinDegW(poly p,intvec *w) 1188 { 1189 if(p==NULL) 1190 return -1; 1191 int n=0; 1192 if(w!=NULL) 1193 n=w->length(); 1194 if(pVariables<n) 1195 n=pVariables; 1196 int d=-1; 1197 while(p!=NULL) 1198 { 1199 int d0=0; 1200 for(int j=0;j<n;j++) 1201 d0+=(*w)[j]*pGetExp(p,j+1); 1202 if(d0<d||d==-1) 1203 d=d0; 1204 pIter(p); 1205 } 1206 return d; 1207 } 1208 1187 1209 poly pSeries(int n,poly p,poly u=NULL) 1188 1210 { … … 1205 1227 if(n==0) 1206 1228 return v; 1207 /* u0 is pGetCoeff(v) */1208 1229 poly u1=pJet(pSub(pOne(),pMult_nn(u,u0)),n); 1209 1230 if(u1==NULL)
Note: See TracChangeset
for help on using the changeset viewer.