Changeset 90df7c in git


Ignore:
Timestamp:
Aug 20, 2013, 1:30:50 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
066132a004c5c341957275f8c4b32c2090e4b532
Parents:
ab4cb22fc65acd82da63f7582fb678a52d0f755f
Message:
fix: by gpfister: extractZ
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/primdecint.lib

    rab4cb2 r90df7c  
    10641064}
    10651065
    1066 ////////////////////////////////////////////////////////////////////////////////
    1067 
     1066//////////////////////////////////////////////////////////////////////////////
    10681067static proc extractZ(ideal J, int j, list L, list B)
    10691068{
     
    10981097         I[1]=0;
    10991098         I=simplify(I,2);
    1100          //=== this is our way to obtain the coefficients in Z[u] of the
    1101          //=== leading terms of the Groebner basis above
    1102          string quotring=Primdec::prepareQuotientring(nvars(basering)-L[1][3]);
    1103          execute(quotring);
    1104          ideal I=imap(Shelp,I);
    1105          list C;
    1106          int i;
    1107          for(i=1;i<=size(I);i++)
    1108          {
    1109             C[i]=leadcoef(I[i]);
    1110          }
    1111          setring Shelp;
    1112          list C=imap(quring,C);
    1113 
     1099         if(L[1][3]==nvars(basering))
     1100         {
     1101            list C;
     1102            int i;
     1103            for(i=1;i<=size(I);i++)
     1104            {
     1105               C[i]=I[i];
     1106            }
     1107         }
     1108         else
     1109         {
     1110            //=== this is our way to obtain the coefficients in Z[u] of the
     1111            //=== leading terms of the Groebner basis above
     1112            string quotring=Primdec::prepareQuotientring(nvars(basering)-L[1][3]);
     1113            execute(quotring);
     1114            ideal I=imap(Shelp,I);
     1115            list C;
     1116            int i;
     1117            for(i=1;i<=size(I);i++)
     1118            {
     1119               C[i]=leadcoef(I[i]);
     1120            }
     1121            setring Shelp;
     1122            list C=imap(quring,C);
     1123         }
    11141124         setring R;
    11151125         list C=imap(Shelp,C);
Note: See TracChangeset for help on using the changeset viewer.