Add astrophysics function
Gabriel-p opened this issue · comments
Could you add a King's profile to the set of functions to fit? It comes from the article King (1962), and it has the form:
f(x) = k [1/sqrt(1 + (x/r_c) ** 2) - 1/(sqrt(1 + (r_t/r_c) ** 2)] ** 2
as seen in Eq 14. The parameters to fit are k, r_c, r_t
.
I will add this to pyeq2 and pyeq3. Should be done in a day or two.
Done. Update your installation of pyeq3, and you will see a new "Astrophysics" module in the drop-down list of tkInterFit.
If you used pip3 to install the pyeq3 library, you can use:
pip3 install pyeq3 --upgrade
to get the new version.