Re: Algorithm for distance from point to function



Mike.Prager <mike.prager¿@noaa.gov> wrote:

Does there exist any reasonably general algorithm for computer
the distance between the point (x,y) and a function y = f(x)?

Minimize sqrt((xi-x)**2 + (f(xi)-y)**2).
.