ossama-othman / MaRC

MaRC - Map Reprojections and Conversions
GNU Lesser General Public License v2.1
1 stars 0 forks source link

MaRC::root_find() is not reliable as implemented #67

Closed ossama-othman closed 6 years ago

ossama-othman commented 6 years ago

MaRC::root_find() as implemented is not suitable for all cases. It suffers from a few deficiencies:

These issues should be addressed so that other code in MaRC that call MaRC::root_find(), such as the conformal projections, work reliably in all cases.

ossama-othman commented 6 years ago

As of commit 11eebbe6, a version of MaRC::root_find() that implements the hybrid bisection / Newton-Raphson approach found in Section 9.4 of "Numerical Recipes in C" is now available. That commit also improves the step value used when computing the first derivative.