|
Use (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrt[ 1 - 2*cos(t) + cos(t)^2 + sin(t)^2 ] dt )
= integral ( sqrt[ 2 - 2*cos(t) ] dt )
Gah, how do you solve this?
Anyway, one possible approach to the 3-D question is to first solve the 2-D question, then integrate that over z = -1 to 1 (remembering to weight each z value in direct proportion to the circumference of the sphere's cross-section at that z value).
Another possible approach is to take (r,theta), rotate it around the x axis, and note that if a given second-point has distse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrtse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrt[ 1 - 2*cos(t) + cos(t)^2 + sin(t)^2 ] dt )
= integral ( sqrt[ 2 - 2*cos(t) ] dt )
Gah, how do you solve this?
Anyway, one possible approach to the 3-D question is to first solve the 2-D question, then integrate that over z = -1 to 1 (remembering to weight each z value in direct proportion to the circumference of the sphere's cross-section at that z value).
Another possible approach is to take (r,theta), rotate it around the x axis, and note that if a given second-point has distse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrt[ 1 - 2*cos(t) + cos(t)^2 + sin(t)^2 ] dt )
= integral ( sqrtse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrt[ 1 - 2*cos(t) + cos(t)^2 + sin(t)^2 ] dt )
= integral ( sqrt[ 2 - 2*cos(t) ] dt )
Gah, how do you solve this?
Anyway, one possible approach to the 3-D question is to first solve the 2-D question, then integrate that over z = -1 to 1 (remembering to weight each z value in direct proportion to the circumference of the sphere's cross-section at that z value).
Another possible approach is to take (r,theta), rotate it around the x axis, and note that if a given second-point has distse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrtse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrt[ 1 - 2*cos(t) + cos(t)^2 + sin(t)^2 ] dt )
= integral ( sqrt[ 2 - 2*cos(t) ] dt )
Gah, how do you solve this?
Anyway, one possible approach to the 3-D question is to first solve the 2-D question, then integrate that over z = -1 to 1 (remembering to weight each z value in direct proportion to the circumference of the sphere's cross-section at that z value).
Another possible approach is to take (r,theta), rotate it around the x axis, and note that if a given second-point has distse (r,theta,z) coordinates. Without loss of generality, let the center of the sphere be (0,0,0) and the first point be (1,0,0).
For z = 0, the average distance is I/pi, where
pi I = integral ( sqrt[ (1-cos(t))^2 + sin(t)^2 ] dt ) t=0
(values of theta from pi to 2*pi are omitted because they're a mirror image of the values from 0 to pi, so they don't change the average)
= integral ( sqrt[ 1 - 2*cos(t) + cos(t)^2 + sin(t)^2 ] dt )
= integral ( sqrt[ 2 - 2*cos(t) ] dt )
Gah, how do you solve this?
Anyway, one possible approach to the 3-D question is to first solve the 2-D question, then integrate that over z = -1 to 1 (remembering to weight each z value in direct proportion to the circumference of the sphere's cross-section at that z value).
Another possible approach is to take (r,theta), rotate it around the x axis, and note that if a given second-point has distance D, then all the points through which that second-point is rotated also have distance D. So integrate (D * circumference of the appropriate circle perpendicular to the x axis) over theta = 0 to pi.
|