Changeset 967a9d in git
- Timestamp:
- Oct 8, 2009, 12:06:59 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- e2afcedc88f05c860f7b86aa70958e538eb8727f
- Parents:
- aaeb98f1d8fde2cb5e6c22ea2a7379cb757bf46c
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/polys.h
raaeb98 r967a9d 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: polys.h,v 1.2 1 2009-02-26 14:22:49 Singular Exp $ */6 /* $Id: polys.h,v 1.22 2009-10-08 10:06:59 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate polynomials of the … … 367 367 void pCleardenom_n(poly p,number &c); 368 368 void p_Normalize(poly p,const ring r); 369 number p_GetAllDenom(poly ph, const ring r); 369 370 #define pNormalize(p) p_Normalize(p,currRing) 370 371 int pSize( poly p ); -
kernel/polys1.cc
raaeb98 r967a9d 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.4 1 2009-09-24 16:37:42Singular Exp $ */4 /* $Id: polys1.cc,v 1.42 2009-10-08 10:06:59 Singular Exp $ */ 5 5 6 6 /* … … 1162 1162 } 1163 1163 1164 number p_GetAllDenom(poly ph, const ring r) 1165 { 1166 number d=n_Init(1,r); 1167 poly p = ph; 1168 1169 while (p!=NULL) 1170 { 1171 number h=n_GetDenom(pGetCoeff(p),r); 1172 if (!n_IsOne(h,r)) 1173 { 1174 number dd=n_Mult(d,h,r); 1175 n_Delete(&d,r); 1176 d=dd; 1177 } 1178 n_Delete(&h,r); 1179 pIter(p); 1180 } 1181 return d; 1182 } 1183 1164 1184 /*2 1165 1185 *tests if p is homogeneous with respect to the actual weigths
Note: See TracChangeset
for help on using the changeset viewer.