On 02/13/2013 10:25 PM, P Purkayastha wrote:
On 02/13/2013 09:24 PM, Jori Mantysalo wrote:
On Tue, 12 Feb 2013, P Purkayastha wrote:
I'm writing about resolvents and want to show some numerical results,
kind of simulating hand-made calculations.
Check these pages out:
http://www.sagemath.org/doc/reference/sage/rings/real_mpfr.html
Had read, but now reading again... and yes, something like this seems to
work:
R1=RealField(20); R2=RealField(30); r=R1(sqrt(2)); R2(r*r)
I don't get it. You are trying to obtain a higher precision *after*
doing the multiplication? Then you will get an incorrect answer.
By the way, this is what I meant:
sage: R1=RealField(20); R2=RealField(30); r=R1(sqrt(2)); R2(r*r)
1.9999981
sage: R2=RealField(30); r=R2(sqrt(2)); r*r
2.0000000
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.