Hi Blair,
On Tue, Dec 23, 2008 at 7:43 AM, bsdz <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---