Re: [fricas-devel] Re: Discussion: bug of minus sign "-" inside InputForm

2016-05-26 Thread Waldek Hebisch
oldk1331 wrote: > > > So, the problem is in unparseInputForm. > > Ah, thank you for pointing that out. > > So, in src/interp/format.boot, > > unparseInputForm calls ... > form2String1 calls > binop2String calls ... > powerOrParen calls ... > appOrParen > > The patch is following: > > index

Re: [fricas-devel] Re: Discussion: bug of minus sign "-" inside InputForm

2016-05-26 Thread Waldek Hebisch
oldk1331 wrote: > > > I'm not sure if this patch creates unnecessary parenthesis elsewhere. > > One change I noticed is "unparse(( t-1 )::INFORM)", it used to be > "t+-1", after patch it's "t+(-1)", is it a bug that it doesn't return "t-1"? That is a tricky question. InputForm (and OutputForm)

Re: [fricas-devel] Re: Discussion: bug of minus sign "-" inside InputForm

2016-05-26 Thread oldk1331
> I'm not sure if this patch creates unnecessary parenthesis elsewhere. One change I noticed is "unparse(( t-1 )::INFORM)", it used to be "t+-1", after patch it's "t+(-1)", is it a bug that it doesn't return "t-1"? -- You received this message because you are subscribed to the Google Groups

Re: [fricas-devel] Re: Discussion: bug of minus sign "-" inside InputForm

2016-05-26 Thread oldk1331
> So, the problem is in unparseInputForm. Ah, thank you for pointing that out. So, in src/interp/format.boot, unparseInputForm calls ... form2String1 calls binop2String calls ... powerOrParen calls ... appOrParen The patch is following: index b582869..7e16e1c 100644 ---