Skip to content

Commit

Permalink
Small docstring fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
S17A05 authored and Eloitor committed Oct 3, 2024
1 parent 94e112d commit b025292
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/sage/algebras/quatalg/quaternion_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ class QuaternionAlgebraFactory(UniqueFactory):
as above are deduced from `D`.
- ``QuaternionAlgebra(K, primes, inv_archimedean)``, where `K` is a
number field or `\QQ`, `primes` is a list of prime ideals of `K`
and `inv_archimedean` is a list of local invariants (0 or 1/2)
specifying the ramification at the (infinite) real places of `K`.
This constructs a quaternion algebra ramified exacly at the places
given by `primes` and those in `K.embeddings(AA)` indexed by `i`
with `inv_archimedean[i]=1/2`.
number field or `\QQ`, ``primes`` is a list of prime ideals of `K`
and ``inv_archimedean`` is a list of local invariants (`0` or
`\frac{1}{2}`) specifying the ramification at the (infinite) real
places of `K`. This constructs a quaternion algebra ramified exacly
at the places given by ``primes`` and those (algebraic) real
embeddings of `K` indexed in ``K.embeddings(AA)`` by ``l`` with
``inv_archimedean[l] = 1/2``.
OUTPUT:
Expand Down Expand Up @@ -198,8 +199,9 @@ class QuaternionAlgebraFactory(UniqueFactory):
sage: QuaternionAlgebra(2*3*5*7)
Quaternion Algebra (-22, 210) with base ring Rational Field
``QuaternionAlgebra(K, primes, inv_archimedean)`` -- return the quaternion
algebra over `K` with the specified ramification::
``QuaternionAlgebra(K, primes, inv_archimedean)`` -- return the
quaternion algebra over `K` with the ramification specified by
``primes`` and ``inv_archimedean``::
sage: QuaternionAlgebra(QQ, [(2), (3)], [0])

Check failure on line 206 in src/sage/algebras/quatalg/quaternion_algebra.py

View workflow job for this annotation

GitHub Actions / test-new

Failed example:

Failed example:: Exception raised: Traceback (most recent call last): File "/sage/src/sage/doctest/forker.py", line 714, in _run self.compile_and_execute(example, compiler, test.globs) File "/sage/src/sage/doctest/forker.py", line 1144, in compile_and_execute exec(compiled, globs) File "<doctest sage.algebras.quatalg.quaternion_algebra.QuaternionAlgebraFactory[20]>", line 1, in <module> QuaternionAlgebra(QQ, [(Integer(2)), (Integer(3))], [Integer(0)]) File "sage/structure/factory.pyx", line 371, in sage.structure.factory.UniqueFactory.__call__ key, kwds = self.create_key_and_extra_args(*args, **kwds) File "sage/structure/factory.pyx", line 475, in sage.structure.factory.UniqueFactory.create_key_and_extra_args return self.create_key(*args, **kwds), {} File "/sage/src/sage/algebras/quatalg/quaternion_algebra.py", line 337, in create_key if is_RationalField(K): NameError: name 'is_RationalField' is not defined. Did you mean: 'RationalField'?
Quaternion Algebra (-1, 3) with base ring Rational Field
Expand Down

0 comments on commit b025292

Please sign in to comment.