For the moment I'd like to do something which is as little work on my side 
as possible - so I'd rather avoid them.

(the real optimization will be to communicate not over strings but directly 
- but not now)

Best,

Martin

Am Montag, 30. Juli 2018 12:17:08 UTC+2 schrieb Waldek Hebisch:
>
> Martin R wrote: 
> > 
> > Dear all, 
> > 
> > I was trying to turn an SExpression into a (compact) String.  My final 
> goal 
> > is to try to avoid "unparse$InputForm" in the sage interface. 
> > 
> > In particular, I would prefer a solution which does not contain any 
> > unnecessary whitespace. 
> > 
> > I know of 
> > 
> > FORMAT('NIL, "~S", (-1/2)::INFORM)$Lisp 
> > 
> > but this has some undesirable side effects with the rootOf operator, 
> which 
> > I do not understand: 
> > 
> > r := integrate(72000/(1+x^5),x)::INFORM 
> > FORMAT('NIL, "~S", r)$Lisp 
> > 
> >    (5) 
> >   "(/ 
> >  (+ 
> >   (* 
> >    (+ 
> >     (^ 
> >      (+ 
> >       (+ 
> >        (* -3 
> >           (^ 
> >         
> >      #1=(|rootOf| 
>        ^^ 
> >                (+ 
> >                 (+ 
> >                  (+ 
> >     
> >                 (^ 
> >                    #2=(|rootOf| 
>                      ^^ 
>
> You mean those markers?  This is standard Lisp way of printing 
> repeated substructures: first time Lisp adds the marker, later 
> #1# means marked subexpression.  It is possible to turn this 
> off, but normally markers makes output smaller so you should like 
> them. 
>
> -- 
>                               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 [email protected].
To post to this group, send email to [email protected].
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