On 02/20/2012 11:35 AM, Burcin Erocal wrote:
Or you can do this:
sage: t = -2/3*x + 4/3
sage: t._convert(RR)
-0.667*x + 1.33
I opened a ticket to make this visible:
http://trac.sagemath.org/sage_trac/ticket/12577
Thanks again for the easy solution.
--
To post to
On 02/20/12 11:35, Burcin Erocal wrote:
>
>
> Or you can do this:
>
> sage: t = -2/3*x + 4/3
> sage: t._convert(RR)
> -0.667*x + 1.33
>
Where were you a few weeks ago? =)
Would anyone be opposed to making this a visible method?
--
To post to this group, send email to
On Mon, 20 Feb 2012 10:39:11 -0500
Michael Orlitzky wrote:
> On 02/19/12 19:58, Mike wrote:
> > When I run:
> >
> > x,y=var('x,y', domain=RR)
> > solve(2.0*x+3.0*y==4.0, y)
> >
> > I get
> >
> > [y == -2/3*x + 4/3]
> >
> > but I would like to get
> >
> > [y == -0.666*x + 1.33
On 02/20/12 10:39, Michael Orlitzky wrote:
> For a workaround, someone recently showed me this. You would call
> `symbolic_approx` on your result.
Whoops, you'll need this, too:
from sage.symbolic.expression_conversions import Converter
--
To post to this group, send email to sage-support@go
On 02/19/12 19:58, Mike wrote:
> When I run:
>
> x,y=var('x,y', domain=RR)
> solve(2.0*x+3.0*y==4.0, y)
>
> I get
>
> [y == -2/3*x + 4/3]
>
> but I would like to get
>
> [y == -0.666*x + 1.3]
>
> How can I do this?
>
Wild guess: the float coefficients are coerced to
When I run:
x,y=var('x,y', domain=RR)
solve(2.0*x+3.0*y==4.0, y)
I get
[y == -2/3*x + 4/3]
but I would like to get
[y == -0.666*x + 1.3]
How can I do this?
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send emai