On 5/7/07, Brian & Caitlin Harris <[EMAIL PROTECTED]> wrote:
>
> I was just asking about the recommended way to solve some general
> problems.  You've answered my question by saying that maxima will be
> more transparent in the future.
>
> By the way, it's unintuitive that this should give an error in SAGE:
> f =x - 3.3
>
> <type 'exceptions.TypeError'>: unsupported operand parent(s) for '-':
> 'Univariate Polynomial Ring in x over Rational Field' and 'Real Field
> with 53 bits of precision'
>
> What's the workaround?

(a) wait for sage-2.5 in which you get:

sage: f = x - 3.3
sage: f
x - 3.30000000000000

(b) Today:

sage: x = polygen(RR,'x')
sage: f = x - 3.3
sage: f
1.00000000000000*x - 3.30000000000000

--~--~---------~--~----~------------~-------~--~----~
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to