def METHOD_NAME(q):
    """computes.
    .. math::
        e = \\equic \\frac{1 - q^2}{1 + q^2}
    :param q: axis ratio of minor to major axis
    :return: ellipticity e
    """
    e = abs(1 - q**2) / (1 + q**2)
    return e