12.07.2015 Views

Sage Reference Manual: Elliptic and Plane Curves - Mirrors

Sage Reference Manual: Elliptic and Plane Curves - Mirrors

Sage Reference Manual: Elliptic and Plane Curves - Mirrors

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTERSEVENPROJECTIVE PLANE CONICS OVER QAUTHORS:• Marco Streng (2010-07-20)• Nick Alex<strong>and</strong>er (2008-01-08)class sage.schemes.plane_conics.con_rational_field.ProjectiveConic_rational_field(A,f )Bases: sage.schemes.plane_conics.con_number_field.ProjectiveConic_number_fieldCreate a projective plane conic curve over Q. See Conic for full documentation.EXAMPLES:sage: P. = QQ[]sage: Conic(X^2 + Y^2 - 3*Z^2)Projective Conic Curve over Rational Field defined by X^2 + Y^2 - 3*Z^2TESTS:sage: Conic([2, 1, -1])._test_pickling()has_rational_point(point=False, obstruction=False, algorithm=’default’, read_cache=True)Returns True if <strong>and</strong> only if self has a point defined over Q.If point <strong>and</strong> obstruction are both False (default), then the output is a boolean out saying whetherself has a rational point.If point or obstruction is True, then the output is a pair (out, S), where out is as above <strong>and</strong> thefollowing holds:•if point is True <strong>and</strong> self has a rational point, then S is a rational point,•if obstruction is True <strong>and</strong> self has no rational point, then S is a prime such that no rationalpoint exists over the completion at S or −1 if no point exists over R.Points <strong>and</strong> obstructions are cached, whenever they are found. Cached information is used if <strong>and</strong> only ifread_cache is True.ALGORITHM:The parameter algorithm specifies the algorithm to be used:•’qfsolve’ – Use Denis Simon’s pari script Qfsolve (seesage.quadratic_forms.qfsolve.qfsolve)•’rnfisnorm’ – Use PARI’s function rnfisnorm (cannot be combined with obstruction =True)33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!