paulnorthrop / itp

The Interpolate, Truncate, Project (ITP) Root-Finding Algorithm
https://paulnorthrop.github.io/itp/
GNU General Public License v3.0
9 stars 2 forks source link

Update itp_c.cpp #3

Closed UvidusNox closed 1 year ago

UvidusNox commented 1 year ago

Hopefully fixed a small err.

paulnorthrop commented 1 year ago

No, I don't think that there is an error here. The calculation has been set up (deliberately) in a slightly different way to the equivalent code in the R function itp() to convert the calculation of natural logs to logs to the base 2. If you think that I have made a mistake here then please open a new pull request and explain.