| 583 | } |
| 584 | |
| 585 | static void naWriteLong(number a, const coeffs cf) |
| 586 | { |
| 587 | naTest(a); |
| 588 | if (a == NULL) |
| 589 | StringAppendS("0"); |
| 590 | else |
| 591 | { |
| 592 | poly aAsPoly = (poly)a; |
| 593 | /* basically, just write aAsPoly using p_Write, |
| 594 | but use brackets around the output, if a is not |
| 595 | a constant living in naCoeffs = cf->extRing->cf */ |
| 596 | BOOLEAN useBrackets = !(p_IsConstant(aAsPoly, naRing)); |
| 597 | if (useBrackets) StringAppendS("("); |
| 598 | p_String0Long(aAsPoly, naRing, naRing); |
| 599 | if (useBrackets) StringAppendS(")"); |
| 600 | } |
| 601 | } |
| 602 | |
| 603 | static void naWriteShort(number a, const coeffs cf) |
| 604 | { |
nothing calls this directly
no test coverage detected