Changeset a0a9f0 in git


Ignore:
Timestamp:
Sep 27, 2011, 5:29:21 PM (12 years ago)
Author:
Burcin Erocal <burcin@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
c7aad03a695808dc3f5aaaa108a93dbc905bf922
Parents:
6f6b9df159c9c68abfcfe9d2008f357892b7191a
git-author:
Burcin Erocal <burcin@erocal.org>2011-09-27 17:29:21+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:38+01:00
Message:
Try to fix printing of coefficients in transcendental extensions again.
File:
1 edited

Legend:

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

    r6f6b9d ra0a9f0  
    830830    fraction f = (fraction)a;
    831831    // stole logic from napWrite from kernel/longtrans.cc of legacy singular
    832     BOOLEAN omitBrackets = p_IsConstant(NUM(f), ntRing) && DENIS1(f);
     832    BOOLEAN omitBrackets = p_IsConstant(NUM(f), ntRing);
    833833    if (!omitBrackets) StringAppendS("(");
    834834    p_String0(NUM(f), ntRing, ntRing);
     
    837837    {
    838838      StringAppendS("/");
    839       StringAppendS("(");
     839      omitBrackets = p_IsConstant(DEN(f), ntRing);
     840      if (!omitBrackets) StringAppendS("(");
    840841      p_String0(DEN(f), ntRing, ntRing);
    841       StringAppendS(")");
     842      if (!omitBrackets) StringAppendS(")");
    842843    }
    843844  }
Note: See TracChangeset for help on using the changeset viewer.