MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Sphere formula

"S. B. Gray" <stevebg at ROADRUNNER.COM> wrote in message
news:hr65rj$jq6$1 at
> 1. The center of a sphere through 4 points has a very nice determinant
> form. ( What I want is a nice
> formula for the center of a sphere through 3 points, where the center is
> in the plane of the three points. I have a formula but it's a horrible
> mess of hundreds of lines, even after FullSimplify.
> 2. (Unlikely) Is there a way to get Mathematica to put a long formula into
> matrix/determinant form if there is a nice one?
> Any tips will be appreciated.
> Steve Gray

The center point of a sphere through three distinct non-collinear points,
where the center is in the same plane as the three points, is given by the
intersection of that plane and the planes normal to direction of any two of
the three pairs of points equidistant from their pair of points.

1. The equation for the plane containing three points {p1,p2,p3}, where p is
a point in that plane, is given by:


2. The equation for a plane normal to the direction of the pair of points
{p1,p2} through the midpoint of {p1,p2}, where p is a point in that plane,
is given by:


3. Likewise for another pair of points {p1,p3} the equation is:


4. The center point of the sphere is the solution point p of these three


5. To use Inverse instead of Solve, the equations can be rewritten as


6. Then symbolic form of the center point p of the sphere is given by:


7. A test using Ray Koopman's posted values for {p1,p2,p3} gives the
expected center point {1,2,3} as the result:



8. Another test using a random center point and Ray Koopman's method of
selecting three random points:

  {c, #, c == #} &[Inverse[{Inverse[{p1,p2,p3}].{1,1,1},p1-p2,p1-p3}].

Out[2]={{2.78647, 4.4668, -1.64474}, {2.78647, 4.4668, -1.64474}, True}

Perhaps this is the nice formula you are looking for!
Hope this helps...

  • Prev by Date: Re: How to disable Integrate[] ?
  • Next by Date: Evaluating a sum from terms generated by the Array function
  • Previous by thread: Re: Sphere formula
  • Next by thread: Re: Sphere formula