Negative integer number should be considered as "atom" in parsing,
so the prefix representation of INFROM "(^ - 1 (/ 1 2))" is OK, the problem
is inside unparse:

    unparse x ==
      atom?(s : % := unparseInputForm(x)$Lisp) => strsym s
      concat [strsym a for a in destruct s]

unparseInputForm returns "(-1 ^ ( 1 / 2 ))" which is OK, the problem is
we shouldn't simply concat them together when change infix representation
to string.  Do you agree?

-- 
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.

Reply via email to