Changeset 42af82e in git


Ignore:
Timestamp:
May 26, 1999, 4:16:50 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
2f15859f9d82f734fb754fef4da141107ae571f2
Parents:
0dee965e6435c14eae946a84cbde644ad0008205
Message:
* imap, and pOrdPolyInsertSetm do addition starting with the tail


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

Legend:

Unmodified
Added
Removed
  • Singular/polys1.cc

    r0dee96 r42af82e  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys1.cc,v 1.21 1999-04-29 11:38:55 Singular Exp $ */
     4/* $Id: polys1.cc,v 1.22 1999-05-26 14:16:50 obachman Exp $ */
    55
    66/*
     
    999999  poly qq,result = NULL;
    10001000
     1001#if 0
    10011002  while (p != NULL)
    10021003  {
     
    10081009    pTest(result);
    10091010  }
     1011#else
     1012  while (p != NULL)
     1013  {
     1014    qq = p;
     1015    pIter(p);
     1016    qq->next = result;
     1017    result = qq;
     1018    pSetm(qq);
     1019  }
     1020  p = result;
     1021  result = NULL;
     1022  while (p != NULL)
     1023  {
     1024    qq = p;
     1025    pIter(p);
     1026    qq->next = NULL;
     1027    result = pAdd(result, qq);
     1028  }
     1029  pTest(result);
     1030#endif
    10101031  return result;
    10111032}
     
    10731094      pTest(qq);
    10741095      pTest(aq);
    1075       if (aq!=NULL)
    1076       {
    1077         qq=pMult(aq,qq);
    1078         aq=NULL;
    1079       }
    1080       result = pAdd(result,qq);
    1081       pTest(result);
     1096      if (aq!=NULL) qq=pMult(aq,qq);
     1097      aq = qq;
     1098      while (pNext(aq) != NULL) pIter(aq);
     1099      pNext(aq) = result;
     1100      aq = NULL;
     1101      result = qq;
    10821102    }
    10831103    else if (aq!=NULL)
     
    10861106    }
    10871107  }
     1108  p = result;
     1109  result = NULL;
     1110  while (p != NULL)
     1111  {
     1112    qq = p;
     1113    pIter(p);
     1114    qq->next = NULL;
     1115    result = pAdd(result, qq);
     1116  }
     1117  pTest(result);
    10881118  return result;
    10891119}
Note: See TracChangeset for help on using the changeset viewer.