How do I, numerically, inscribe a sphere inside an ellipsoid, $$ ax^{2}+by^{2}+cz^{2}+2fyz+2gzx+2hxy+2px+2qy+2rz+d=0 $$ such that it touches the ellipsoid at a point $(x_1,y_1,z_1)$ on its surface, and has the same curvature as the point? I was considering finding out the mean radius of curvature, and then using it to find a point on the major axis $(x_2,y_2,z_2)$ where the distance between the two points is the same as the radius of curvature.
Problem is, I cannot also find a proper formula to calculate the radius of curvature. The following has one,
Harris, W. F. "Curvature of ellipsoids and other surfaces." Ophthalmic and Physiological Optics 26.5 (2006): 497-501.
But I was looking for something simpler as a method to do it over and over again. Can you guys help?