<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
text="#000000">
Hi. I am implementing complex numbers for pypy's version of numpy. <br>
Numpy has both 128 bit (based on 64 bit floats) and 64 bit (based on
32 bit floats) complex numbers, where afaict cmath uses strictly 128
bit complex numbers. I made sure the 128 bit numpy complex numbers
in pypy pass the tests in Lib/tests/cmath_testcases.txt.<br>
I would like to generate a similar file to cmath_testcases.txt for
64 bit complex numbers. I found the earliest commit of the file at<br>
<a
href="http://hg.python.org/cpython/file/b69f443ef480/Lib/test/cmath_testcases.txt">http://hg.python.org/cpython/file/b69f443ef480/Lib/test/cmath_testcases.txt</a><br>
Can the authors of the original file help me reconstruct the scripts
or programs used to generate it, and reformulate them for 32 bit
floats?<br>
Since there are more than 2000 cases, and many need rewriting, I
prefer an automated method to error-prone hand coding.<br>
By the way, the level of testing is most impressive.<br>
Thanks for any help or tips,<br>
Matti Picus<br>
</body>
</html>