Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken (?) discriminant of quaternion algebra #337

Closed
aghitza opened this issue Mar 29, 2007 · 1 comment
Closed

broken (?) discriminant of quaternion algebra #337

aghitza opened this issue Mar 29, 2007 · 1 comment

Comments

@aghitza
Copy link

aghitza commented Mar 29, 2007

Quaternion algebras seem to have a function discriminant(), but this fails when I try to use it. Here is an example -- as far as I can tell the problem might actually be in gram_matrix():

----------------------------------------------------------------------
| SAGE Version 2.4.1.2, Release Date: 2007-03-28                     |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: B.<i,j,k> = QuaternionAlgebra(QQ,-3,-1)
sage: B
Quaternion algebra with generators (i, j, k) over Rational Field
sage: B.discriminant()
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'>        Traceback (most recent call last)

/home/ghitza/python/<ipython console> in <module>()

/opt/sage/local/lib/python2.5/site-packages/sage/algebras/quaternion_algebra.py in discriminant(self)
    349         
    350     def discriminant(self):
--> 351         return self.gram_matrix().determinant()
    352 
    353     def gram_matrix(self):

/opt/sage/local/lib/python2.5/site-packages/sage/algebras/quaternion_algebra.py in gram_matrix(self)
    353     def gram_matrix(self):
    354         V = self.__vector_space
--> 355         if not V._FreeModule_generic__inner_product_is_dot_product:
    356             return V.inner_product_matrix()
    357         K = self.base_ring()

<type 'exceptions.AttributeError'>: 'FreeModule_ambient_field' object has no attribute '_FreeModule_generic__inner_product_is_dot_product'

Component: packages: standard

Issue created by migration from https://trac.sagemath.org/ticket/337

@williamstein
Copy link
Contributor

comment:1

fixed in sage-2.8.

@williamstein williamstein added this to the sage-2.8.2 milestone Aug 18, 2007
mkoeppe added a commit to mkoeppe/sage that referenced this issue Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants