On May 21, 2005 10:00 PM William Sit wrote:
> ...
> For example:
>
>(26) -> )lisp (|parseAndInterpret| "expand((1+x)^10)::OutputForm")
>
> (26)
>10 9 8 7 6 5 4 3 2
> x + 10x + 45x + 120x + 210x + 252x + 210x + 120x + 45x +
10x + 1
>
Hi Bill:
You wrote:
> I am not really interested in a linear syntax. (Although
> latex output is interesting for a different purpose, later
> on.) All I want right now is a line-by-line list of strings
> of the text representation. If I took this list of strings
> and print them in sequence, the r
William Sit wrote:
>
> Bill:
>
> And you can get LaTex output string:
>
> (16) -> )lisp (|parseAndInterpret|
> "integrate(sin(x),x)::TexFormat::OutputForm")
>
>(16) ["$$","-{\cos ","\left(","{x} ","\right)}","$$"]
> Type: Outp
Bill:
And you can get LaTex output string:
(16) -> )lisp (|parseAndInterpret| "integrate(sin(x),x)::TexFormat::OutputForm")
(16) ["$$","-{\cos ","\left(","{x} ","\right)}","$$"]
Type: OutputForm
Value = ((|OutputForm|) WRAPPED BRA
Bill:
Try:
(8) -> )lisp (|parseAndInterpret| "integrate(sin(x),x)::OutputForm")
(8) - cos(x)
Type: OutputForm
Value = ((|OutputForm|) WRAPPED "-" (|cos| |x|))
William
___
Axiom-develo
On May 21, 2005 10:03 AM Tim Daly wrote:
> Well, )lisp is actually just a lisp call. Nothing gets in
> the way. That's why you get the "VALUE" output. You called
> a lisp function. You could write:
>
> )lisp (progn (|parseAndInterpret| "1+1") nil)
>
> and get a NIL return value.
Yes, that is clea