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 vstinner
Recipients mark.dickinson, ragreddy, rhettinger, serhiy.storchaka, vstinner
Date 2016-04-14.00:45:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460594712.22.0.819766654869.issue26743@psf.upfronthosting.co.za>
In-reply-to
Content
>>> print math.sqrt(2.0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: math domain error

I'm surprised that such basic math function fails.

Can you please try to compile and run attached C program?

$ gcc sqrt.c -o sqrt -lm && ./sqrt
sqrt(2) = 1.41421
History
Date User Action Args
2016-04-14 00:45:12vstinnersetrecipients: + vstinner, rhettinger, mark.dickinson, serhiy.storchaka, ragreddy
2016-04-14 00:45:12vstinnersetmessageid: <1460594712.22.0.819766654869.issue26743@psf.upfronthosting.co.za>
2016-04-14 00:45:12vstinnerlinkissue26743 messages
2016-04-14 00:45:11vstinnercreate