lib/finance/time_value.rb
def effective_annual_rate(rate,compound_frequency)
      compound_frequency = resolve_compound_frequency!(compound_frequency)
      if compound_frequency == :continuous
        return continuous_effective_annual_rate(rate)
      end
      m= compound_frequency
      e_rate = (1 + rate/m)**m -1
    end
##
# determine the effective annual rate for a given simple interest rate compounded
# over a given number of periods
# *rate simple annual rate
# *compound_per_period compound / period
determine the effective annual rate for a given simple interest rate compounded
over a given number of periods
rate simple annual rate
compound_per_period compound / period
determine the effective annual rate for a given simple interest rate compounded over a given number of periods rate simple annual rate compound_per_period compound / period
def effective_annual_rate(rate,compound_frequency)
      compound_frequency = resolve_compound_frequency!(compound_frequency)
      if compound_frequency == :continuous
        return continuous_effective_annual_rate(rate)
      end
      m= compound_frequency
      e_rate = (1 + rate/m)**m -1
    end
def effective_annual_rate ( rate , compound_frequency ) compound_frequency = resolve_compound_frequency! ( compound_frequency ) if compound_frequency == :continuous return continuous_effective_annual_rate ( rate ) end m = compound_frequency e_rate = ( 1 + rate / m ) ** m - 1 end
determine the effective annual rate for a given simple interest rate compounded
over a given number of periods
rate simple annual rate
compound_per_period compound / period
determine the effective annual rate for a given simple interest rate compounded over a given number of periods rate simple annual rate compound_per_period compound / period
rate
compound_frequency