Changeset 0c516e in git


Ignore:
Timestamp:
Feb 22, 2013, 7:02:38 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
26ebc69791aa463ad9adef87b7a8ee64433b8d6b2ad7541722e5fa0e6f54847c371628902a726b94
Parents:
0736b6354597b04a7dba6bfc49af7e18a6356543
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-22 19:02:38+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-02-22 19:04:17+01:00
Message:
fix: avoid rational coeffs in numerator in maps Q->Q(t)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r0736b6 r0c516e  
    14871487  assume(n_Test(a, src));
    14881488  assume(src == dst->extRing->cf);
    1489   return ntInit(p_NSet(n_Copy(a, src), dst->extRing), dst);
     1489  if ((SR_HDL(a) & SR_INT) || (a->s==3))
     1490    return ntInit(p_NSet(n_Copy(a, src), dst->extRing), dst);
     1491  number nn=nlGetDenom(a,src);
     1492  number zz=nlGetNumerator(a,src);
     1493  number res=ntInit(p_NSet(zz,dst->extRing), dst);
     1494  fraction ff=(fraction)res;
     1495  DEN(ff)=p_NSet(nn,dst->extRing);
     1496  return (number)ff;
    14901497}
    14911498
Note: See TracChangeset for help on using the changeset viewer.