malee/_malee.py
def lr(vi, vf, t=1):
    """The logarithmic return is a way of calculating
    the rate of return on an investment. To calculate it
    you need the inital value of the investment `Vi`,
    the final value `Vf` and the number of time periods `t`.
    You then take the natural logarithm of `Vf` divided by `Vi`,
    and divide the result by `t`.

    Args:
        vi: Initial value of investment
        vf: Final value of investment
        t: Number of time periods

    Returns:
        The logarithmic return of a given investment

    Example:
        By providing initial and final value of investment
        you can get the percentage of logarithmic return of
        your investment:

        >>> import malee
        >>> malee.lr(100, 140)
        0.3364722366212129
    """
    return log(vf / vi, e) / t
The logarithmic return is a way of calculating
    the rate of return on an investment. To calculate it
    you need the inital value of the investment `Vi`,
    the final value `Vf` and the number of time periods `t`.
    You then take the natural logarithm of `Vf` divided by `Vi`,
    and divide the result by `t`.

    Args:
        vi: Initial value of investment
        vf: Final value of investment
        t: Number of time periods

    Returns:
        The logarithmic return of a given investment

    Example:
        By providing initial and final value of investment
        you can get the percentage of logarithmic return of
        your investment:

        >>> import malee
        >>> malee.lr(100, 140)
        0.3364722366212129
    
The logarithmic return is a way of calculating
the rate of return on an investment.
The logarithmic return is a way of calculating the rate of return on an investment .
def lr(vi, vf, t=1):
    return log(vf / vi, e) / t
def lr ( vi , vf , t = 1 ) : return log ( vf / vi , e ) / t
The logarithmic return is a way of calculating
the rate of return on an investment.
The logarithmic return is a way of calculating the rate of return on an investment .
"""The logarithmic return is a way of calculating
    the rate of return on an investment. To calculate it
    you need the inital value of the investment `Vi`,
    the final value `Vf` and the number of time periods `t`.
    You then take the natural logarithm of `Vf` divided by `Vi`,
    and divide the result by `t`.

    Args:
        vi: Initial value of investment
        vf: Final value of investment
        t: Number of time periods

    Returns:
        The logarithmic return of a given investment

    Example:
        By providing initial and final value of investment
        you can get the percentage of logarithmic return of
        your investment:

        >>> import malee
        >>> malee.lr(100, 140)
        0.3364722366212129
    """
The logarithmic return of a given investment
The logarithmic return of a given investment
vi
Initial value of investment
Initial value of investment
vf
Final value of investment
Final value of investment
t
Number of time periods
Number of time periods
examples
By providing initial and final value of investment
you can get the percentage of logarithmic return of
your investment.


By providing initial and final value of investment you can get the percentage of logarithmic return of your investment .