Amount¶
-
class
tmval.growth.
Amount
(gr: Union[Callable, tmval.rate.Rate, float], k: float)[source]¶ The Amount class is an implementation of the amount function, which describes how much an invested amount of money grows over time.
The amount function’s methods can return things like the valuation of an investment after a specified time, and effective interest and discount rates over an interval.
The accumulation function, which is a special case of the amount function where k=1, can be extracted from the amount function using the get_accumulation() method.
- Parameters
gr (Callable, float, Rate) – a growth object, which can either be a function that must take the parameters t for time and k for principal, or a Rate object representing an interest rate.
k (float) – the principal, or initial investment.
- Returns
An amount object, which can be used like an amount function in interest theory.
- Return type