Changeset a199a3 in git


Ignore:
Timestamp:
Mar 7, 2014, 12:29:42 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
ba613995ddff08ba13beb2499b6e5336d7ecb483
Parents:
d221a2f14103ce45b583cfa80f40efc541b8a20c
git-author:
Martin Lee <martinlee84@web.de>2014-03-07 12:29:42+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-03-17 18:31:53+01:00
Message:
chg: use modular resultant in alg_factor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/libfac/charset/alg_factor.cc

    rd221a2 ra199a3  
    7878}
    7979
    80 // replacement for factory's broken resultant
    8180static CanonicalForm
    8281resultante( const CanonicalForm & f, const CanonicalForm& g, const Variable & v )
     
    8988  CanonicalForm gz = g * cd;
    9089  if (!on_rational)  Off(SW_RATIONAL);
    91 
    92   return resultant(fz,gz,v);
     90  CanonicalForm result;
     91  if (getCharacteristic() == 0)
     92    result= resultantZ (fz, gz,v);
     93  else
     94    result= resultant (fz,gz,v);
     95
     96  return result;
    9397}
    9498
Note: See TracChangeset for help on using the changeset viewer.