0
Clear["Global`*"]
reg = ImplicitRegion[ x + k y == 0, {x, y}]
pt = {-((a^2 k)/Sqrt[b^2 + a^2 k^2]), b^2/Sqrt[b^2 + a^2 k^2]}
RegionDistance[reg, pt]

Why is it impossible to find the distance from this point to the straight line?

The known condition is: a > b > 0, and the point is in the first quadrant. k<0

the right answer is:

enter image description here

Clear["Global`*"] 
reg = ImplicitRegion[a x + b y + c == 0, {x, y}] 
pt = {x0, y0}
RegionDistance[reg, pt]

Why can't the distance formula from a point to a straight line be derived using code?

csn899
  • 3,953
  • 6
  • 13

0 Answers0