-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #29028: bugs for binary quadratic forms whose discriminant is a …
…square Ticket #28989 fixes bugs for quadratic forms whose discriminant is positive, but not a square. This ticket addresses the remaining case where the discriminant is a square. Symptoms of the bugs include: Two forms may be properly equivalent, but not equivalent, and equivalence is not reflexive: {{{ sage: Q = BinaryQF(0, 2, 0) sage: Q.discriminant() 4 sage: Q.is_equivalent(Q, proper=True) True sage: Q.is_equivalent(Q, proper=False) False }}} The forms `-4*x^2 + 10*x*y`, `-2*x^2 + 10*x*y`, ` 10*x*y`, `2*x^2 + 10*x*y`, `4*x^2 + 10*x*y`, and `5*x^2 + 10*x*y` are not primitive (i.e., the gcd of the coefficients is not 1), but they appear in a list of primitive forms: {{{ sage: BinaryQF_reduced_representatives(10^2, primitive_only=True) [-4*x^2 + 10*x*y, -3*x^2 + 10*x*y, -2*x^2 + 10*x*y, -x^2 + 10*x*y, 10*x*y, x^2 + 10*x*y, 2*x^2 + 10*x*y, 3*x^2 + 10*x*y, 4*x^2 + 10*x*y, 5*x^2 + 10*x*y] }}} I will upload a PR soon. URL: https://trac.sagemath.org/29028 Reported by: gh-DaveWitteMorris Ticket author(s): Dave Morris Reviewer(s): Travis Scrimshaw
- Loading branch information
Showing
2 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters