On 3 Aug., 20:28, Simon King <simon.k...@nuigalway.ie> wrote: > Hi Sébastien, > > 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
However, B.sage() is "better" than sage0(B), since the latter lives in its own world: sage: C.parent() Full MatrixSpace of 2 by 2 dense matrices over Integer Ring sage: D.parent() Sage sage: print D.parent().eval("%s.parent()"%D.name()) Full MatrixSpace of 2 by 2 dense matrices over Integer Ring Regards, 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 -~----------~----~----~----~------~----~------~--~---