> >> sage: axiom(maxima('1/2'))
> >>  1
> >>  -
> >>  2
> >> sage: maxima(axiom('1/2'))
> >> -1
> > The only reason these examples work is by chance.  The current
> > code was not designed to work this way, and this approach would
> > only work in general for the simplest of examples (such as integers
> > or rational numbers).
>
> That is not true. Exactly this sort of example was used to illustrate
> the original design of Sage.

AFAIK only interfaces Sage <-> $someothersystem are implemented and not 
$someothersystem <-> $yetanothersystem. However, I think one could make it 
work like this:

if isinstance(foo, ExpectElement) and not foo.parent() is self:
  foosage = foo._sage_() # i.e. convert to Sage and then to the other system
  return self(foosage)

Cheers,
Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


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

Reply via email to