def dice2jaccard(dice_val):
    """
    Calc Jaccard coefficient from Dice

    :param dice_val: value of dice coefficient
    :type: float or np.ndarray
    :return: float or np.ndarray corresponds of input type
    """
    return dice_val / (2 - dice_val)