Ignore:
Timestamp:
Jul 5, 2011, 5:03:04 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
06df101aca2a40770d6d90cccc4cbdedcf52950a
Parents:
da49bc5ede2940b54c1e9f92022763151efa76e6
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-07-05 17:03:04+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:12+01:00
Message:
test for trac ticket #308 with new implementation (result is instantaneous)
File:
1 edited

Legend:

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

    rda49bc r2d3091c  
    88*           Denoting the implemented coeffs object by cf, then these numbers
    99*           are represented as quotients of polynomials in the polynomial
    10 *           ring K[t_1, .., t_s] represented by cf->algring.
     10*           ring K[t_1, .., t_s] represented by cf->extring.
    1111*/
    1212
     
    615615  {
    616616    fraction f = (fraction)a;
    617     BOOLEAN useBrackets = (!p_IsConstant(NUM(f), ntRing)) && (!DENIS1(f));
     617    BOOLEAN useBrackets = (!p_IsConstant(NUM(f), ntRing)) ||
     618                          (!n_GreaterZero(p_GetCoeff(NUM(f), ntRing),
     619                                          ntCoeffs));
    618620    if (useBrackets) StringAppendS("(");
    619621    p_String0(NUM(f), ntRing, ntRing);
     
    622624    {
    623625      StringAppendS("/");
    624       useBrackets = !p_IsConstant(DEN(f), ntRing);
     626      useBrackets = (!p_IsConstant(DEN(f), ntRing)) ||
     627                    (!n_GreaterZero(p_GetCoeff(DEN(f), ntRing), ntCoeffs));
    625628      if (useBrackets) StringAppendS("(");
    626629      p_String0(DEN(f), ntRing, ntRing);
Note: See TracChangeset for help on using the changeset viewer.