Changeset a5071b9 in git
- Timestamp:
- Sep 26, 2011, 5:38:26 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- a195edd4d149b8454ad5aea3c914d9bf579f93b4
- Parents:
- 4eb485635d45ce52dc829f85b42fe078e603df55
- git-author:
- Burcin Erocal <burcin@erocal.org>2011-09-26 17:38:26+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:33+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r4eb485 ra5071b9 829 829 { 830 830 fraction f = (fraction)a; 831 BOOLEAN useBrackets = (!p_IsConstant(NUM(f), ntRing)) || 832 (!n_GreaterZero(p_GetCoeff(NUM(f), ntRing), 833 ntCoeffs)); 834 if (useBrackets) StringAppendS("("); 831 // stole logic from napWrite from kernel/longtrans.cc of legacy singular 832 BOOLEAN omitBrackets = p_IsConstant(NUM(f), ntRing) && DENIS1(f); 833 if (!omitBrackets) StringAppendS("("); 835 834 p_String0(NUM(f), ntRing, ntRing); 836 if ( useBrackets) StringAppendS(")");835 if (!omitBrackets) StringAppendS(")"); 837 836 if (!DENIS1(f)) 838 837 { 839 838 StringAppendS("/"); 840 useBrackets = (!p_IsConstant(DEN(f), ntRing)) || 841 (!n_GreaterZero(p_GetCoeff(DEN(f), ntRing), ntCoeffs)); 842 if (useBrackets) StringAppendS("("); 839 StringAppendS("("); 843 840 p_String0(DEN(f), ntRing, ntRing); 844 if (useBrackets)StringAppendS(")");841 StringAppendS(")"); 845 842 } 846 843 }
Note: See TracChangeset
for help on using the changeset viewer.