Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

>>> math.sqrt(2.5) == 2.5**0.5
True
>>> math.sqrt(25.25) == 25.25**0.5
True

If we test the precision of math.sqrt(), would not be better to test it with 
data for which naive way of calculating the root returns different result? For 
example 2921 is the smallest integers for which math.sqrt(x) > x**0.5, and 3541 
is the smallest integers for which math.sqrt(x) < x**0.5.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44364>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to