Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Calculating point-plane distance' topicStudent Support Forum > General > "Calculating point-plane distance"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Bill
12/16/12 10:52pm

Hi:

This isn't exactly what you asked for, but perhaps it may be helpful...

Using NMinimize, solve this problem: Find the point P on the plane -2 x + 1 y + 3 z = -3 closest to the point Q(5,0,-7) and the distance between these two points.

NMinimize[{(x - 5)^2 + y^2 + (z + 7)^2, -2 x + 1 y + 3 z == -3}, {x, y, z}]

Out: {56., {x -> 1., y -> 2., z -> -1.}}

distance = Sqrt[56] // N

Out: 7.48331


Hth,

Bill

URL: ,

Subject (listing for 'Calculating point-plane distance')
Author Date Posted
Calculating point-plane distance Jules 12/14/12 10:35pm
Re: Calculating point-plane distance Bill Simpson 12/16/12 5:12pm
Re: Re: Calculating point-plane distance Jules 12/16/12 6:52pm
Re: Re: Re: Calculating point-plane distance Bill Simpson 12/16/12 11:30pm
Re: Calculating point-plane distance Bill 12/16/12 10:52pm
< Previous CommentHelp | Reply To Comment | Reply To Topic