Changeset c94e60f in git
- Timestamp:
- Sep 28, 2010, 12:19:46 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 1b38e5dbbecec05b3fdea59a6b4b159d06d20466
- Parents:
- 4df33b5c9997268b982b1432e0fcc77a23ebe22d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/general.lib
r4df33b rc94e60f 1175 1175 e.g. ideal, matrix, vector, module, int, intvec 1176 1176 p = integer 1177 COMPUTE: primefactors <= min(p,32003)of coeffs of J (default p = 32003)1177 COMPUTE: primefactors <= p of coeffs of J (default p = 32003) 1178 1178 RETURN: a list, say l, of two intvectors:@* 1179 1179 l[1] : the different primefactors of all coefficients of J@* 1180 1180 l[2] : the different remaining factors 1181 NOTE: the procedure works for small integers only, just by testing all1182 primes (not to be considered as serious prime factorization!)1183 1181 EXAMPLE: example primecoeffs; shows an example 1184 1182 " … … 1219 1217 { 1220 1218 l = primefactors(number(id[ii]),q); 1221 jd = jd,l[1]; 1222 rest = rest,l[3]; 1219 list jdl=l[2]; 1220 jd = jd,jdl[1..size(jdl)]; 1221 kill jdl; 1222 rest=rest, l[1]; 1223 1223 } 1224 1224 jd = simplify(jd,6);
Note: See TracChangeset
for help on using the changeset viewer.