An elliptic curve over a field , in cryptography, is the set of points with , where , together with a point at infinity . The points form a commutative group, written additively, with as its neutral element: the line through and (the tangent if ) meets the curve in a third point, and is the mirror image of that point in the -axis.
ec_add.py: the chord through and meets the curve again at , and .