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
27 stars 4 forks source link

Break up solvers into different functions. #31

Open genedan opened 4 years ago

genedan commented 4 years ago

I haven't really seen solvers in other packages that are general in the sense that the return type can change depending on what parts of an equation are missing. It may be better to break up a general function into multiple functions - one for each case. By doing so, we can avoid confusion on what a function is supposed to return and reduce semantic errors.