Re: Re: Outputting S-expressions

Martin Rubey <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Message-ID <[email protected]>
Dear Ludovic,

[email protected] (Ludovic Courtès) writes:
> > (1) -> p:=(1+x)^5
> >
> >          5     4      3      2
> >    (1)  x  + 5x  + 10x  + 10x  + 5x + 1
> >                                                      Type: Polynomial Integer
> > (2) -> VALUES(p)$Lisp
> >
> >    (2)  (1 x (5 0 . 1) (4 0 . 5) (3 0 . 10) (2 0 . 10) (1 0 . 5) (0 0 . 1))
> >                                                             Type: SExpression
> 
> Actually, I want a "parsable" S-exp, like `(** (+ 1 x) 5)' in this case.

I think you might want to use INFORM (= InputForm)?



Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.