Changeset 21b8f4c in git for factory/facAlgExt.cc


Ignore:
Timestamp:
Jul 25, 2011, 4:08:17 PM (13 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3dd0640ba1b8ca0d5fc4aa74c81faaa7eb5129fc
Parents:
64a5014602570d17e143cbe6e31d19fd6a86cfc3
Message:
added new fdivides which also returns the quotient in case of divisibility
replaced old fdivides where possible


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

Legend:

Unmodified
Added
Removed
  • factory/facAlgExt.cc

    r64a501 r21b8f4c  
    156156  bool save_rat=!isOn (SW_RATIONAL);
    157157  On (SW_RATIONAL);
    158   CanonicalForm buf= F/Lc (F);
     158  CanonicalForm quot, buf= F/Lc (F);
    159159  CFFList factors;
    160160  int multi;
     
    163163    multi= 0;
    164164    i.getItem() /= Lc (i.getItem()); //make factors monic
    165     while (fdivides (i.getItem(), buf))
     165    while (fdivides (i.getItem(), buf, quot))
    166166    {
    167       buf /= i.getItem();
     167      buf= quot;
    168168      multi++;
    169169    }
Note: See TracChangeset for help on using the changeset viewer.