Changeset 2d19a1b in git
- Timestamp:
- Feb 27, 2001, 7:06:35 PM (22 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 0936ad6711f0a6991a14ecc189209f979f6054df
- Parents:
- 8cfee1c3269a440dc074eae208795fd4da490c0e
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ideals.cc
r8cfee1c r2d19a1b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.12 2 2001-02-22 09:40:15 SingularExp $ */4 /* $Id: ideals.cc,v 1.123 2001-02-27 18:06:34 mschulze Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 2905 2905 } 2906 2906 2907 int idMinDegW(ideal M,intvec *w) 2908 { 2909 int d=-1; 2910 for(int i=0;i<IDELEMS(M);i++) 2911 { 2912 int d0=pMinDegW(M->m[i],w); 2913 if(-1<d0&&(d0<d||d==-1)) 2914 d=d0; 2915 } 2916 return d; 2917 } 2918 2907 2919 ideal idSeries(int n,ideal M,matrix U=NULL) 2908 2920 { -
Singular/ideals.h
r8cfee1c r2d19a1b 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ideals.h,v 1.3 2 2001-02-22 09:40:16 SingularExp $ */6 /* $Id: ideals.h,v 1.33 2001-02-27 18:06:34 mschulze Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate ideals … … 129 129 ideal idJet(ideal i,int d); 130 130 ideal idJetW(ideal i,int d, intvec * iv); 131 int idMinDegW(ideal M,intvec *w); 131 132 ideal idSeries(int n,ideal M,matrix U=NULL); 132 133 -
Singular/polys.h
r8cfee1c r2d19a1b 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: polys.h,v 1.5 4 2001-02-08 13:13:04 SingularExp $ */6 /* $Id: polys.h,v 1.55 2001-02-27 18:06:35 mschulze Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate polynomials of the … … 403 403 poly pJet(poly p, int m); 404 404 poly ppJetW(poly p, int m, short * iv); 405 int pMinDegW(poly p,intvec *w); 405 406 poly pSeries(int n,poly p,poly u=NULL); 406 407 poly pInvers(int n, poly p); -
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.