Hi Sébastien,

On 3 Aug., 19:44, William Stein <wst...@gmail.com> wrote:
...
> > * The same somebody likes the idea of defining in Sage object and translate
> > it from one system to the other. One reason is that he told me that he
> > prefers the sage latex output for some object. I think translation of
> > objects could be more consistant. For instance :
>
> > sage: A = matrix(2, [1..4])
> > sage: B = maple(A)
> > sage: C = B.sage()
> > sage: C = sage(B) # Why does this way doesn't work ??
>
> Because the Sage library is called "sage", i.e., if the above worked,
> then things like
>
>     sage: sage.rings.[tab key]
>
> to see what's in the sage.rings wouldn't work.

But there *is* an interface to sage in sage. It is called sage0, and
it works as expected. Since I don't have Maple, I use Singular:

sage: A = matrix(2,[1..4])
sage: B = singular(A)
sage: C = B.sage()
sage: D = sage0(B)
sage: C

[1 2]
[3 4]
sage: D

[1 2]
[3 4]
sage: B

     1     2
     3     4

Cheers,
   Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to