conversions.rectangular_to_polar

Functions

rectangular_to_polar(→ tuple[float, float])

https://en.wikipedia.org/wiki/Polar_coordinate_system

Module Contents

conversions.rectangular_to_polar.rectangular_to_polar(real: float, img: float) tuple[float, float]

https://en.wikipedia.org/wiki/Polar_coordinate_system

>>> rectangular_to_polar(5,-5)
(7.07, -45.0)
>>> rectangular_to_polar(-1,1)
(1.41, 135.0)
>>> rectangular_to_polar(-1,-1)
(1.41, -135.0)
>>> rectangular_to_polar(1e-10,1e-10)
(0.0, 45.0)
>>> rectangular_to_polar(-1e-10,1e-10)
(0.0, 135.0)
>>> rectangular_to_polar(9.75,5.93)
(11.41, 31.31)
>>> rectangular_to_polar(10000,99999)
(100497.76, 84.29)