Goal:
I am writing software to visualize 3-D objects in Python, using libraries such as sympy, numpy, and matplotlib.pyplot. I would like to fit the best surface to a small number of points. This is why I want to find the smallest distance between a point and a quadric surface
============================================================================== $$Ax^2 + By^2 + Cz^2 + Dxy + Exz + Fyz + Gx + Hy + Iz + J = 0$$
==============================================================================
Questions:
1) How can I find a solution to this equation, given particular coefficients $A, B, ..., J$ ? This is for the purpose of solving question 2, which is the key question:
2) How can I find the smallest Euclidean distance between that surface and a point? I have access to a computer; I'm using python2 and sympy at the moment.
3) Is there software I can use to visualize such a surface?
4) Are these surfaces known as "manifolds" in proper mathematical terms? From brief reading, it sounds like a manifold is a more general mathematical object than the object the word "surface" I'm using denotes