Hi Blair,

On Tue, Dec 23, 2008 at 7:43 AM, bsdz <blai...@googlemail.com> wrote:
>
> Hi,
>
> Is it possible to convert a SymbolicEquation into a MaximaElement
> easily? The opposite to: -
>
> maxima('x^2 + y^2 = 0').sage()
>
> Something like this: -
>
> x, y = var('x y')
> b = x^2 + y^2 == 0
> b.maxima()

I think this is what you're after:

sage: x, y = var('x y')
sage: b = x^2 + y^2 == 0
sage: maxima(b)
y^2+x^2=0
sage: type(_)
<class 'sage.interfaces.maxima.MaximaElement'>

Note that maxima(b) works by (eventually) calling b._maxima_()

sage: b._maxima_()
y^2+x^2=0

--Mike

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

Reply via email to