Path: blob/master/sage/schemes/plane_conics/con_prime_finite_field.py
4108 views
r"""1Projective plane conics over prime finite fields23AUTHORS:45- Marco Streng (2010-07-20)678"""9#*****************************************************************************10# Copyright (C) 2010 Marco Streng <[email protected]>11#12# Distributed under the terms of the GNU General Public License (GPL)13#14# This code is distributed in the hope that it will be useful,15# but WITHOUT ANY WARRANTY; without even the implied warranty of16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU17# General Public License for more details.18#19# The full text of the GPL is available at:20#21# http://www.gnu.org/licenses/22#*****************************************************************************2324from sage.schemes.plane_curves.projective_curve import ProjectiveCurve_prime_finite_field25from con_finite_field import ProjectiveConic_finite_field2627class ProjectiveConic_prime_finite_field(ProjectiveConic_finite_field, ProjectiveCurve_prime_finite_field):28r"""29Create a projective plane conic curve over a prime finite field.30See ``Conic`` for full documentation.3132EXAMPLES::3334sage: P.<X, Y, Z> = FiniteField(5)[]35sage: Conic(X^2 + Y^2 - 2*Z^2)36Projective Conic Curve over Finite Field of size 5 defined by X^2 + Y^2 - 2*Z^23738TESTS::3940sage: Conic([FiniteField(7)(1), 1, -1])._test_pickling()41"""42def __init__(self, A, f):43r"""44See ``Conic`` for full documentation.4546EXAMPLES ::4748sage: Conic([GF(3)(1), 1, 1])49Projective Conic Curve over Finite Field of size 3 defined by x^2 + y^2 + z^250"""51ProjectiveConic_finite_field.__init__(self, A, f)52ProjectiveCurve_prime_finite_field.__init__(self, A, f)5354555657