Waldek,

Thanks for working on this! Could you please try the following example:

integrate(sin(x)^2+cos(x+1)^2,x)
unparse(%::InputForm)

At the wiki web page:

 http://axiom-wiki.newsynthesis.org/SandBoxUnparse

it shows this error:

Break.
Broken at FUNCALL.  Type :H for Help.
BOOT>>
   >> System error:
   The variable QUIT is unbound.

Regards,
Bill Page.

On Tue, Sep 16, 2008 at 11:11 PM, Waldek Hebisch wrote:
>
> The patch below is a first shot at better unparse.  The last hunk
> add parentheses around single argument -- this fixes the sin x+1
> problem.  The rest of the patch is rewritten binop2String.
> I hope that large class of expressions (including polynomials)
> will be printed without useless parentheses, however all cases
> where we are unsure if parenthesis are needed will now get
> them.
>
> Note: the patch changes only printing of function applications
> and expressions involving binary operators, other things
> should be printed as before.
>
> Note2: minimally tested -- since almost all types are printed
> differently differences in testsuite output are quite large
> and I did not have time to check them.
>
> ...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to