Changeset aa1c72 in git


Ignore:
Timestamp:
Oct 15, 2010, 4:59:44 PM (14 years ago)
Author:
Stefan Steidel <steidel@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4cc3cac20265c51b365bd1c8bd3d9007b68928dc
Parents:
8a224efdc9c0fd76c5e0717b9a9350cd8c2a94f9
Message:
Procedure zeroR becomes static, new procedure zeroRadical is added to the library.

git-svn-id: file:///usr/local/Singular/svn/trunk@13513 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/assprimeszerodim.lib

    r8a224e raa1c72  
    1818
    1919PROCEDURES:
    20  zeroR(I);             computes the radical of I
     20 zeroRadical(I);       computes the radical of I
    2121 assPrimes(I);         computes the associated primes of I
    2222";
     
    2727////////////////////////////////////////////////////////////////////////////////
    2828
    29 proc zeroR(ideal I, list #)
    30 "USAGE:  zeroR(I,[n]); I ideal, optional: n number of processors (for parallel
    31          computing)
     29proc zeroRadical(ideal I, list #)
     30"USAGE:  zeroRadical(I,[n]); I ideal, optional: n number of processors (for
     31         parallel computing)
    3232ASSUME:  I is zero-dimensional in Q[variables]
    3333NOTE:    Parallelization is just applicable using 32-bit Singular version since
    3434         MP-links are not compatible with 64-bit Singular version.
    3535RETURN:  the radical of I
    36 EXAMPLE: example zeroR; shows an example
     36EXAMPLE: example zeroRadical; shows an example
    3737"
     38{
     39   return(zeroR(modStd(I,#),#));
     40}
     41example
     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
     50static 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
    3853{
    3954   attrib(I,"isSB",1);
     
    190205   if(k == 0) { return(I); }
    191206   else { return(std(I + F)); }
    192 }
    193 example
    194 { "EXAMPLE:";  echo = 2;
    195    ring R = 0, (x,y), dp;
    196    ideal I = xy4-2xy2+x, x2-x, y4-2y2+1;
    197    zeroR(I);
    198207}
    199208
Note: See TracChangeset for help on using the changeset viewer.