I wrote: > > oldk1331 wrote: > > > > The patch is following: > > > > index b582869..7e16e1c 100644 > > --- a/src/interp/format.boot > > +++ b/src/interp/format.boot > > @@ -489,7 +489,9 @@ coerceOrParen(x) == > > > > appOrParen(x) == > > SYMBOLP(x) => formWrapId x > > - INTEGERP(x) => WRITE_-TO_-STRING x > > + INTEGERP(x) => > > + x >=0 => WRITE_-TO_-STRING x > > + concat('"(",WRITE_-TO_-STRING x,'")") > > -- Kludge to avoid extra parentheses printing a > > SparseUnivariatePolynomial > > x = '"?" => formWrapId x > > ATOM(x) => concat('"(", form2String1(x), '")") > > > > ==================== > > > > There are a few more calls to appOrParen, I'm not sure if this patch creates > > unnecessary parenthesis elsewhere. > > AFAICS this is correct solution for this problem. If there are > unexpected consequences, then they should be handled in other > places.
It is commited now. -- Waldek Hebisch -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To post to this group, send email to fricas-devel@googlegroups.com. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.