STINNER Victor added the comment: >>> 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 ---------- nosy: +haypo Added file: http://bugs.python.org/file42459/sqrt.c _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26743> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com