Changeset 9b10a76 in git for kernel/polys.cc


Ignore:
Timestamp:
Jul 23, 2007, 4:01:27 PM (17 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5d7a3b71b24413b5b1944dd621e4da4cb4a50320
Parents:
b529d9012a2f0139b1d63038125da10ba6fd7f90
Message:
*motsak: procedure p_Read: squares are zeroes in SCA!


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

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    rb529d9 r9b10a76  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.23 2007-07-23 13:58:56 Singular Exp $ */
     4/* $Id: polys.cc,v 1.24 2007-07-23 14:01:27 motsak Exp $ */
    55
    66/*
     
    228228      if (((unsigned long)i) >  r->bitmask)
    229229      {
    230         // exponent to large: it is not a monomial
     230        // exponent to large: it is not a monomial
    231231        p_DeleteLm(&rc,r);
    232232        return s_save;
     
    246246  else
    247247  {
     248    // in super-commutative ring
     249    // squares of anti-commutative variables are zeroes!
     250    if(rIsSCA(r))
     251    {
     252      const unsigned int iFirstAltVar = scaFirstAltVar(r);
     253      const unsigned int iLastAltVar  = scaLastAltVar(r);
     254
     255      assume(rc != NULL);
     256
     257      for(unsigned int k = iFirstAltVar; k <= iLastAltVar; k++)
     258        if( p_GetExp(rc, k, r) > 1 )
     259        {
     260          p_DeleteLm(&rc, r);
     261          goto finish;
     262        }
     263      }
     264   
    248265    p_Setm(rc,r);
    249266  }
     267finish: 
    250268  return s;
    251269}
Note: See TracChangeset for help on using the changeset viewer.