The minimal example is this:

(4) -> x := sqrt(-1)::EXPR INT

         ┌───┐
   (4)  \│- 1
                                                    Type: 
Expression(Integer)
(5) -> x::InputForm
 
   (5)  (^ - 1 (/ 1 2))
                                                              Type: 
InputForm
(6) -> unparse(x::InputForm)
 
   (6)  "-1^(1/2)"
                                                                 Type: 
String
(7) -> parse(unparse(x::INFORM))$INFORM

   (7)  (- (^ 1 (/ 1 2)))
                                                              Type: 
InputForm
============================

First, the correct answer of "unparse(x::InputForm)" should be
"(-1)^(1/2)".

Second, should "x::InputForm" return '(^ - 1 (/ 1 2))' or
'(^ (- 1) (/ 1 2))',

op.spad#L586 is related:
https://github.com/fricas/fricas/blob/51888b33b333931fc06bd020105c03cb991c043d/src/algebra/op.spad#L586

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