Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #21992.18: \mathbb{Z}->\ZZ, \mathbb{Q}->\QQ
Browse files Browse the repository at this point in the history
  • Loading branch information
cheuberg committed Jan 3, 2017
1 parent 2f819d8 commit 25c6da2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/sage/matrix/compute_J_ideal.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
.. MATH::
\{f \in \mathbb{Q}[X] \mid f(B) \in M_3(\mathbb{Z})\} =
(x^3 + x^2 - 12x - 20)\mathbb{Q}[X] + \mathbb{Z}[X] + \frac{1}{4}(x^2 + 3x + 2) \mathbb{Z}[X].
\{f \in \QQ[X] \mid f(B) \in M_3(\ZZ)\} =
(x^3 + x^2 - 12x - 20)\QQ[X] + \ZZ[X] + \frac{1}{4}(x^2 + 3x + 2) \ZZ[X].
.. TODO::
Expand Down
14 changes: 7 additions & 7 deletions src/sage/matrix/matrix_integer_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5572,7 +5572,7 @@ cdef class Matrix_integer_dense(Matrix_dense): # dense or sparse
Compute `(p^s)`-minimal polynomials `\nu_s` of this matrix.
For `s\ge 0`, a `(p^s)`-minimal polynomial of
a matrix `B` is a monic polynomial `f\in \mathbb{Z}[X]` of
a matrix `B` is a monic polynomial `f\in \ZZ[X]` of
minimal degree such that all entries of `f(B)` are divisible
by `p^s`.
Expand All @@ -5588,7 +5588,7 @@ cdef class Matrix_integer_dense(Matrix_dense): # dense or sparse
INPUT:
- ``p`` -- a prime in `\mathbb{Z}`
- ``p`` -- a prime in `\ZZ`
- ``s_max`` -- a positive integer (default: ``None``); if set, only
`(p^s)`-minimal polynomials for ``s <= s_max`` are computed
Expand Down Expand Up @@ -5623,16 +5623,16 @@ cdef class Matrix_integer_dense(Matrix_dense): # dense or sparse

def null_ideal(self, b=0):
r"""
Return the `(b)`-ideal `N_{(b)}(B)=\{f\in \mathbb{Z}[X] \mid f(B)\in M_n(b\mathbb{Z})\}` where `B`
Return the `(b)`-ideal `N_{(b)}(B)=\{f\in \ZZ[X] \mid f(B)\in M_n(b\ZZ)\}` where `B`
is this matrix.
INPUT:
- ``b`` -- an element of `\mathbb{Z}` (default: 0)
- ``b`` -- an element of `\ZZ` (default: 0)
OUTPUT:
An ideal in `\mathbb{Z}[X]`.
An ideal in `\ZZ[X]`.
EXAMPLES::
Expand Down Expand Up @@ -5663,12 +5663,12 @@ cdef class Matrix_integer_dense(Matrix_dense): # dense or sparse
OUTPUT:
A pair ``(mu_B, P)`` where ``P`` is a list of polynomials in `\mathbb{Q}[X]`
A pair ``(mu_B, P)`` where ``P`` is a list of polynomials in `\QQ[X]`
such that
.. MATH::
\{f \in \mathbb{Q}[X] \mid f(B) \in M_n(\mathbb{Z})\} = \mu_B \mathbb{Q}[X] + \sum_{g\in P} g \mathbb{Z}[X]
\{f \in \QQ[X] \mid f(B) \in M_n(\ZZ)\} = \mu_B \QQ[X] + \sum_{g\in P} g \ZZ[X]
where `B` is this matrix.
Expand Down

0 comments on commit 25c6da2

Please sign in to comment.