Changeset a96818 in git for Singular/iparith.cc


Ignore:
Timestamp:
Oct 26, 2005, 12:42:40 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
Children:
73054bb8a1f71c689b22c662c08b762f3913c906
Parents:
2971ea6f2b7ed7331e23db7e6ddfb028a2239a36
Message:
*hannes: code simplified


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r2971ea ra96818  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.382 2005-10-20 12:19:59 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.383 2005-10-26 10:42:40 Singular Exp $ */
    55
    66/*
     
    12121212  poly p=(poly)u->Data();
    12131213  poly q=(poly)v->Data();
    1214   if (p==NULL)
    1215   {
    1216     res->data=(char *)(q==NULL);
    1217   }
    1218   else
    1219   {
    1220     if (q==NULL) res->data=(char *)FALSE;
    1221     else
    1222     {
    1223       int r=pCmp(p,q);
    1224       if (r==0)
    1225       {
    1226         p=pSub(pCopy(p),pCopy(q));
    1227         res->data = (char *) (p==NULL);
    1228         pDelete(&p);
    1229       }
    1230       else
    1231         res->data = (char *) FALSE;
    1232     }
    1233   }
     1214  res->data = (char *) (pEqualPolys(p,q));
    12341215  jjEQUAL_REST(res,u,v);
    12351216  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.