import torch


def const_to_rad(x: torch.Tensor) -> torch.Tensor:
    """Retrieve radius from solution to linear system.

    Args:
        x (torch.Tensor): Solutions to circle linear system.
    Return:
        radius (torch.Tensor): Circle's radius.
    """
    radius = torch.sqrt(x[:,2] + x[:,0]**2 + x[:,1]**2)
    return radius