Changeset 2d3091c in git for libpolys/polys/ext_fields/transext.cc
- Timestamp:
- Jul 5, 2011, 5:03:04 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
rda49bc r2d3091c 8 8 * Denoting the implemented coeffs object by cf, then these numbers 9 9 * 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. 11 11 */ 12 12 … … 615 615 { 616 616 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)); 618 620 if (useBrackets) StringAppendS("("); 619 621 p_String0(NUM(f), ntRing, ntRing); … … 622 624 { 623 625 StringAppendS("/"); 624 useBrackets = !p_IsConstant(DEN(f), ntRing); 626 useBrackets = (!p_IsConstant(DEN(f), ntRing)) || 627 (!n_GreaterZero(p_GetCoeff(DEN(f), ntRing), ntCoeffs)); 625 628 if (useBrackets) StringAppendS("("); 626 629 p_String0(DEN(f), ntRing, ntRing);
Note: See TracChangeset
for help on using the changeset viewer.