Library "FunctionCompoundInterest"
Method for compound interest.
simple_compound(principal, rate, duration) Computes compound interest for given duration.
Parameters:
principal: float, the principal or starting value.
rate: float, the rate of interest.
duration: float, the period of growth.
Returns: float.
variable_compound(principal, rates, duration) Computes variable compound interest for given duration.
Parameters:
principal: float, the principal or starting value.
rates: float array, the rates of interest.
duration: int, the period of growth.
Returns: float array.
simple_compound_array(principal, rates, duration) Computes variable compound interest for given duration.
Parameters:
principal: float, the principal or starting value.
rates: float array, the rates of interest.
duration: int, the period of growth.
Returns: float array.
variable_compound_array(principal, rates, duration) Computes variable compound interest for given duration.
Parameters:
principal: float, the principal or starting value.
rates: float array, the rates of interest.
duration: int, the period of growth.
Returns: float array.