First of all, thanks for your help.
I was off for the weekend, so my answer is a little late.

Mike's solution is ok for the precision but doesn't work for our
little example log(2+a-2), because it still says - infty and in my
application it doesn't fit either.

Harald's solution using RationalField works for this example (log),
but when I come to sqrts or pi in my expression, it fails.
Also in my application I don't know when my variable gets Symbolic,
Real or Complex so it is not always possible to convert to Rational.
So I'd have to use .n() all the time. But isn't that slowing down the
whole computation a lot.

Greetings Michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to