On 2017-03-29 11:24, Dima Pasechnik wrote:
Is the following a bug, or  not:

A bug in what :-)

This is already interesting (on Linux):

sage: float(RR(3).sqrt())
1.7320508075688772
sage: float(RDF(3).sqrt())
1.7320508075688772
sage: float(RR(sqrt(3)))
1.7320508075688772
sage: float(RDF(sqrt(3)))
1.7320508075688774

The last one is actually more wrong (error: 0.55 ulp) than the first three (error: 0.45 ulp). Interestingly, it is precisely this wrong answer which is used in the doctest.

I think it's fair to say that the doctest isn't robust.

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to