Searched defs:polar (Results 1 - 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
H A Dtest_cmath.py5 from cmath import phase, polar, rect, pi namespace
293 """Wrapped version of polar that returns a complex number instead of
295 return complex(*polar(z))
302 elif fn == 'polar':
383 self.check_polar(polar)
387 # Issue #24489: check a previously set C errno doesn't disturb polar()
392 return polar(z)
/external/python/cpython3/Lib/test/
H A Dtest_cmath.py6 from cmath import phase, polar, rect, pi namespace
355 """Wrapped version of polar that returns a complex number instead of
357 return complex(*polar(z))
370 elif fn == 'polar':
451 self.check_polar(polar)
455 # Issue #24489: check a previously set C errno doesn't disturb polar()
460 return polar(z)

Completed in 196 milliseconds