MCPcopy Index your code
hub / github.com/RustPython/RustPython / polar_complex

Method polar_complex

Lib/test/test_cmath.py:298–301  ·  view source on GitHub ↗

Wrapped version of polar that returns a complex number instead of two floats.

(z)

Source from the content-addressed store, hash-verified

296 return cmath.rect(z.real, z.imag)
297
298 def polar_complex(z):
299 """Wrapped version of polar that returns a complex number instead of
300 two floats."""
301 return complex(*polar(z))
302
303 for id, fn, ar, ai, er, ei, flags in parse_testfile(test_file):
304 arg = complex(ar, ai)

Callers

nothing calls this directly

Calls 1

polarFunction · 0.90

Tested by

no test coverage detected