Changeset 48a41a in git for Singular


Ignore:
Timestamp:
Feb 17, 2012, 11:35:47 AM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
26acab557e4ad73e2c8ba02fa1ad998773365fff66e25f2bbb3969a1769c9710fee12d7ca6262dd7
Parents:
46eef0a30be9c81870e8f7f971a5e0748c9e8fcd
Message:
chg: introduce n_ParDeg for pardeg(number)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r46eef0 r48a41a  
    44454445static BOOLEAN jjPARDEG(leftv res, leftv v)
    44464446{
    4447   res->data = (char *)0L;
    44484447  number nn=(number)v->Data();
    4449   if (nn!=NULL)
    4450   {
    4451     if (getCoeffType(currRing->cf)==n_algExt)
    4452     {
    4453       poly qq=(poly)nn;
    4454       res->data = (char *)(long)currRing->cf->extRing->pFDeg(qq,
    4455         currRing->cf->extRing);
    4456     }
    4457     if(getCoeffType(currRing->cf)==n_transExt)
    4458     {
    4459       /* from transext.h:*/
    4460       struct fractionObject
    4461       {
    4462         poly numerator;
    4463         poly denominator;
    4464         int complexity;
    4465       };
    4466       typedef struct fractionObject * fraction;
    4467       #define NUM(f) (((fraction)f)->numerator)
    4468 
    4469       fraction qq=(fraction)nn;
    4470       res->data = (char *)(long)currRing->cf->extRing->pFDeg(NUM(qq),
    4471         currRing->cf->extRing);
    4472     }
    4473   }
     4448  res->data = (char *)(long)n_ParDeg(nn,currRing->cf);
    44744449  return FALSE;
    44754450}
Note: See TracChangeset for help on using the changeset viewer.