Changeset 1cd0f4 in git


Ignore:
Timestamp:
Feb 25, 2014, 3:59:50 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
8968c1705d85c26166eb14a273dabcdba2291bd0
Parents:
37693d1129265efd8305f91280e6de711af0cade
Message:
fix: allow (const) denom. in minpoly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r37693d1 r1cd0f4  
    254254  if( currRing->cf->extRing->qideal != NULL ) id_Delete(&(A.r->qideal),A.r);
    255255  ideal q = idInit(1,1);
    256   if ((p==NULL) ||(DEN((fraction)(p)) != NULL) ||(NUM((fraction)p)==NULL))
     256  if ((p==NULL) ||(NUM((fraction)p)==NULL))
    257257  {
    258258    Werror("Could not construct the alg. extension: minpoly==0");
     
    261261    return TRUE;
    262262  }
    263 
    264   assume( DEN((fraction)(p)) == NULL ); // minpoly must be a fraction with poly numerator...!!
     263  if (DEN((fraction)(p)) != NULL) // minpoly must be a fraction with poly numerator...!!
     264  {
     265    poly z=NUM((fraction)p);
     266    poly n=DEN((fraction)(p));
     267    z=p_Mult_nn(z,pGetCoeff(n),currRing->cf->extRing);
     268    NUM((fraction)p)=z;
     269    DEN((fraction)(p))=NULL;
     270    p_Delete(&n,currRing->cf->extRing);
     271  }
    265272
    266273  q->m[0] = NUM((fraction)p);
Note: See TracChangeset for help on using the changeset viewer.