def eqe_to_iqe(eqe, reflectivity):
    """
    calculate internal quantum efficiency from external quantum efficiency

    :param eqe:
    :type Spectrum
    :param reflectivity:
    :type Spectrum
    :return: IQE
    :type Spectrum
    """

    return eqe / (1 - reflectivity)