Changeset aa1c72 in git
- Timestamp:
- Oct 15, 2010, 4:59:44 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 4cc3cac20265c51b365bd1c8bd3d9007b68928dc
- Parents:
- 8a224efdc9c0fd76c5e0717b9a9350cd8c2a94f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/assprimeszerodim.lib
r8a224e raa1c72 18 18 19 19 PROCEDURES: 20 zeroR (I);computes the radical of I20 zeroRadical(I); computes the radical of I 21 21 assPrimes(I); computes the associated primes of I 22 22 "; … … 27 27 //////////////////////////////////////////////////////////////////////////////// 28 28 29 proc zeroR (ideal I, list #)30 "USAGE: zeroR (I,[n]); I ideal, optional: n number of processors (for parallel31 computing)29 proc zeroRadical(ideal I, list #) 30 "USAGE: zeroRadical(I,[n]); I ideal, optional: n number of processors (for 31 parallel computing) 32 32 ASSUME: I is zero-dimensional in Q[variables] 33 33 NOTE: Parallelization is just applicable using 32-bit Singular version since 34 34 MP-links are not compatible with 64-bit Singular version. 35 35 RETURN: the radical of I 36 EXAMPLE: example zeroR ; shows an example36 EXAMPLE: example zeroRadical; shows an example 37 37 " 38 { 39 return(zeroR(modStd(I,#),#)); 40 } 41 example 42 { "EXAMPLE:"; echo = 2; 43 ring R = 0, (x,y), dp; 44 ideal I = xy4-2xy2+x, x2-x, y4-2y2+1; 45 zeroRadical(I); 46 } 47 48 //////////////////////////////////////////////////////////////////////////////// 49 50 static proc zeroR(ideal I, list #) 51 // compute the radical of I provided that I is zero-dimensional in Q[variables] 52 // and a standard basis 38 53 { 39 54 attrib(I,"isSB",1); … … 190 205 if(k == 0) { return(I); } 191 206 else { return(std(I + F)); } 192 }193 example194 { "EXAMPLE:"; echo = 2;195 ring R = 0, (x,y), dp;196 ideal I = xy4-2xy2+x, x2-x, y4-2y2+1;197 zeroR(I);198 207 } 199 208
Note: See TracChangeset
for help on using the changeset viewer.