2
""" Simple test script for cmathmodule.c
6
from test.test_support import verbose, verify, TestFailed
8
verify(abs(cmath.log(10) - math.log(10)) < 1e-9)
9
verify(abs(cmath.log(10,2) - math.log(10,2)) < 1e-9)
25
testdict = {'acos' : 1.0,
42
for func in testdict.keys():
43
f = getattr(cmath, func)
46
print 'Calling %s(%f) = %f' % (func, testdict[func], abs(r))