请输入您要查询的字词:

 

单词 DistanceFromPointToALine
释义

distance from point to a line


The distanceMathworldPlanetmath from a point P with coordinates (xp,yp)2 to the line with equation ax+by+c=0 is given by |axp+byp+c|/a2+b2.

Proof Every point x,y on the line is at some distance (x-xp)2+(y-yp)2 from P. What we need to find is the minimum such distance. Our problem is

min(x-xp)2+(y-yp)2

subject to

ax+by+c=0

This problem is solvable using the Lagrange multiplier method. We minimize

(x-xp)2+(y-yp)2+λ(ax+by+c)

Calculating the derivatives with respect to x,y and λ and setting them to zero we get three equations:

2x-2xp+λa=0(1)
2y-2yp+λb=0(2)
2ax+2by+2c=0(3)

Solving these leads toxp-x=aaxp+byp+ca2+b2 and yp-y=baxp+byp+ca2+b2.We can now substitute these expressions into (x-xp)2+(y-yp)2 and we get (after some simplification) the desired result.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 11:20:03