def local_radius(x, y):
    """Returns radius of the circle going through a point given it's local coordinates."""
    if x != 0:
        return (x**2 + y**2) / abs(2 * x)
    else:
        return y**2