Changeset 35f5d9a in git


Ignore:
Timestamp:
May 14, 2014, 10:50:47 AM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
89889e8f44c96b31ec50d021b6a513497cfbbfcc
Parents:
67294f133bef3a2db42680ebd276e07b8960e5b8
git-author:
Martin Lee <martinlee84@web.de>2014-05-14 10:50:47+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-05-21 15:06:55+02:00
Message:
chg: added a function to compute the norm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facAlgExt.cc

    r67294f1 r35f5d9a  
    4848  G= gcd (F, G);
    4949  return F/G;
     50}
     51
     52CanonicalForm Norm (const CanonicalForm& F, const Variable& alpha)
     53{
     54  Variable x= Variable (F.level() + 1);
     55  Variable y= F.mvar();
     56  CanonicalForm g= F (x, alpha);
     57  CanonicalForm mipo= getMipo (alpha);
     58  mipo= mipo (x, alpha);
     59  mipo *= bCommonDen (mipo);
     60
     61  int degg= degree (g);
     62  int degmipo= degree (mipo);
     63  CanonicalForm norm;
     64  TIMING_START (fac_alg_resultant);
     65  if (degg >= 8 || degmipo >= 8)
     66    norm= resultantZ (g, mipo, x);
     67  else
     68    norm= resultant (g, mipo, x);
     69  TIMING_END_AND_PRINT (fac_alg_resultant, "time to compute resultant0: ");
     70  return norm;
    5071}
    5172
Note: See TracChangeset for help on using the changeset viewer.