genedan / TmVal

Time Value of Money - a Python package for mathematical interest theory, annuity, and bond calculations.
https://genedan.com/tmval/docs
GNU General Public License v3.0
30 stars 4 forks source link

Fix checks for compound and level interest in Amount class #43

Open genedan opened 4 years ago

genedan commented 4 years ago

Certain growth functions aren't defined on all real numbers, so when the checks use an invalid domain value , a ZeroDivisonError may happen. There's a temporary fix pushed, but these routines can be more thoughtfully written.