def a(q: float, e: float) -> float:
    """
    a = q / (e - 1)

    :param q: pericentric distance
    :type q: float
    :param e: eccentricity
    :type e: float
    :return: semi-major axis
    :rtype: float
    """
    return q / (e - 1)