genedan / TmVal

Time Value of Money - a Python package for mathematical interest theory, annuity, and bond calculations.

Home Page:https://genedan.com/tmval/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Break up solvers into different functions.

genedan opened this issue · comments

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.