import math


def cart2pol(x, y):
    """
    Transform a point from cartesian coordinates to polar coordinates.

    :param x: x coordinate value of the point
    :param y: y coordinate value of the point
    :return: rho (distance from the pole (origin) to the point),
        theta (the angle between the polar-axis and the line connecting the pole and the point, in radians)
    """
    return math.hypot(x, y), math.atan2(y, x)