This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients AjithRamachandran, mark.dickinson, serhiy.storchaka
Date 2021-06-10.19:18:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623352688.97.0.556051295899.issue44364@roundup.psfhosted.org>
In-reply-to
Content
>>> 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.
History
Date User Action Args
2021-06-10 19:18:09serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, AjithRamachandran
2021-06-10 19:18:08serhiy.storchakasetmessageid: <1623352688.97.0.556051295899.issue44364@roundup.psfhosted.org>
2021-06-10 19:18:08serhiy.storchakalinkissue44364 messages
2021-06-10 19:18:08serhiy.storchakacreate