Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find a conic equation that passes through five given points
ResourceFunction["FivePointConic"][pts,{x,y}] returns the implicit Cartesian equation in the variables x and y of the conic section that goes through the points pts. | |
ResourceFunction["FivePointConic"][pts] uses the formal variables x and y. |
Find a conic section through five points:
| In[1]:= |
| Out[2]= |
Show the conic and points:
| In[3]:= |
| Out[3]= | ![]() |
Use formal variables:
| In[4]:= |
| Out[4]= |
The results of a five point conic are usually a hyperbola:
| In[5]:= | ![]() |
| Out[8]= | ![]() |
A random five point conic is also frequently an ellipse:
| In[9]:= | ![]() |
| Out[12]= | ![]() |
A circle can also be the result of a five point conic:
| In[13]:= | ![]() |
| Out[16]= | ![]() |
A parabola may also appear:
| In[17]:= | ![]() |
| Out[20]= | ![]() |
Degenerate conics are also possible:
| In[21]:= | ![]() |
| Out[24]= | ![]() |
See the properties of the non-degenerate conics with the resource function ConicProperties:
| In[25]:= | ![]() |
| Out[26]= | ![]() |
A function for characterizing a conic section:
| In[27]:= | ![]() |
A sample conic section:
| In[28]:= | ![]() |
| Out[29]= |
The above polynomial defines a hyperbola:
| In[30]:= |
| Out[30]= |
Degenerate conics appear frequently when selecting from a limited lattice:
| In[31]:= | ![]() |
| Out[32]= |
For random real-valued points, the result is always a hyperbola or ellipse:
| In[33]:= | ![]() |
| Out[34]= |
This work is licensed under a Creative Commons Attribution 4.0 International License