Martin Rubey <martin.ru...@math.uni-hannover.de> writes: > I just tried it (with external FriCAS) and it seems to work ok. It > might make sense to expand FriCASElement a little. Currently we have: > > P = self._check_valid() > name = str(self) > if name == 'Integer': > from sage.rings.all import ZZ > return ZZ > elif name == 'DoubleFloat': > from sage.rings.all import RDF > return RDF > elif name.startswith('Fraction('): > name = name.lstrip('Fraction(') > name = name.rstrip(')') > return P(name)._sage_domain().fraction_field() > > raise NotImplementedError
I just realised that I do not understand at all where the conversion of the element itself is done. The above only determines the type, right? Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---