Re: Algorithm for distance from point to function



The minimum distance is the length of the shortest line from the point
x1y1 to a tangent to the line y=f(x). The equation of the tangent is a
line whose slope is the first derivative at x2y2. The point x2,y2
satisfying the function and at the shortest distance is the
intersection of a line through x1y1 which is perpendicular to the
tangent at x2,y2 and therefore has a slope of the inverse of the tanget
(or the reciprocal of the first derivative at that point).
Then the distance is just the normal Gausian square rooot of the sum of
the squares of the differences between each coordinate of the pair
x1,y1; x2,y2
Searching by closer approximations is the best technique.

.



Relevant Pages

  • Re: Algorithm for distance from point to function
    ... x1y1 to a tangent to the line y=f. ... line whose slope is the first derivative at x2y2. ... satisfying the function and at the shortest distance is the ... intersection of a line through x1y1 which is perpendicular to the ...
    (comp.lang.fortran)
  • Re: The Einstein Cult Index
    ... with distance, velocity, acceleration, pressure, temperature, etc. ... all remote oscillators in the universe change, ... Harry I am very cautious about such, because that is the shortest ... concepts of real physics, which you now demonstrate that you are not. ...
    (sci.physics)
  • Re: Euclids postulates and non-Euclidean geometry
    ... The plane is limited in the planes it can move. ... the difference being the shortest path or shortest distance. ... I understand geodesics, it is you that has lost the reality and ...
    (sci.physics)
  • Re: Coming down to sprint distances Re: Training Week Ending October 29th 2006
    ... What was your main distance at this stage? ... than distance runner. ... My scores drop monotonically from shortest ... So Purdy appears to be about on the mark. ...
    (rec.running)
  • Re: Solution for the Traveling Salesman Problem
    ... remaining that are shortest, with the constraint that ... but the algorithm is flawed even if we ... then that is the shortest tour. ... measure the distance between every two points. ...
    (sci.math)