import torch


def pol2cart(r, phi):
    """
    Polar coordinates to cartesian coordinates.
    
    :param r: 
    :param phi: 
    :return: x, y
    """
    x = r * torch.cos(phi)
    y = r * torch.sin(phi)
    return (x, y)