Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/schemes/plane_conics/con_prime_finite_field.py
4108 views
1
r"""
2
Projective plane conics over prime finite fields
3
4
AUTHORS:
5
6
- Marco Streng (2010-07-20)
7
8
9
"""
10
#*****************************************************************************
11
# Copyright (C) 2010 Marco Streng <[email protected]>
12
#
13
# Distributed under the terms of the GNU General Public License (GPL)
14
#
15
# This code is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
# General Public License for more details.
19
#
20
# The full text of the GPL is available at:
21
#
22
# http://www.gnu.org/licenses/
23
#*****************************************************************************
24
25
from sage.schemes.plane_curves.projective_curve import ProjectiveCurve_prime_finite_field
26
from con_finite_field import ProjectiveConic_finite_field
27
28
class ProjectiveConic_prime_finite_field(ProjectiveConic_finite_field, ProjectiveCurve_prime_finite_field):
29
r"""
30
Create a projective plane conic curve over a prime finite field.
31
See ``Conic`` for full documentation.
32
33
EXAMPLES::
34
35
sage: P.<X, Y, Z> = FiniteField(5)[]
36
sage: Conic(X^2 + Y^2 - 2*Z^2)
37
Projective Conic Curve over Finite Field of size 5 defined by X^2 + Y^2 - 2*Z^2
38
39
TESTS::
40
41
sage: Conic([FiniteField(7)(1), 1, -1])._test_pickling()
42
"""
43
def __init__(self, A, f):
44
r"""
45
See ``Conic`` for full documentation.
46
47
EXAMPLES ::
48
49
sage: Conic([GF(3)(1), 1, 1])
50
Projective Conic Curve over Finite Field of size 3 defined by x^2 + y^2 + z^2
51
"""
52
ProjectiveConic_finite_field.__init__(self, A, f)
53
ProjectiveCurve_prime_finite_field.__init__(self, A, f)
54
55
56
57