On Fri, Sep 5, 2008 at 6:51 PM, Mike Hansen wrote:
>
> I actually removed the use of unparse and InputForm in the latest
> changes because of things like
>
> (6) -> unparse(2.123 :: InputForm)
>
>   (6)  "float(156649750673941512323,-66,2)"
>                                                                 Type: String
>
> which is not quite what we want for the Sage interface.

I think it is not so bad since by defining the function float
appropriately this can easily parse this into a Sage floating point.
If this really is inconvenient then the

> The linear representation of the object is much less important
> than it being human readable.
>

-1 No! I disagree strongly with this.

It seems to me that the reason why 2-d output from Maxima and other
external packages is disabled is specifically to enable them to
interact. The Axiom interface was intentionally modeled after the
Maxima interface and I still believe that it should operate in
essentially the same manner. Your change breaks what I consider to be
one of the most important features of the Sage:

----------------------------------------------------------------------
| SAGE Version 3.1.1, Release Date: 2008-08-17                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: pari('1/2')
1/2
sage: maxima('1/2')
1/2
sage: gap('1/2')
1/2
sage: pari('1/2')
1/2
sage: maple('1/2')
1/2
sage: mathematica('1/2')
1/2
sage: axiom('1/2')

  1
  -
  2
sage: axiom(maxima('1/2'))

  1
  -
  2
sage: maxima(axiom('1/2'))
-1

--------------

Apparently this last incorrect result is due to

sage: axiom.get(1/2)
'  1\r\n  -\r\n  2'

wherein maxima just ignores the white-space characters.

When producing printed output I suppose that really Sage should do
things in a more object-oriented manner and simply ask the external
package to display it's own objects in whatever manner is natural for
that package. But there needs to be a common "linear representation"
available when passing computations from one package to another and to
native Sage.

Regards,
Bill Page.

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