Skip to content

Commit 83b9197

Browse files
committed
Use LaTeX commands instead of Unicode characters
1 parent 94fe540 commit 83b9197

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/doc/es/tutorial/tour_help.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ El indexado de una lista comienza en el cero, como en muchos lenguajes de progra
280280

281281
La función ``len(v)`` devuelve la longitud de ``v``. Utiliza ``v.append(obj)`` para
282282
añadir un nuevo objeto al final de ``v``, y utiliza ``del v[i]`` para borrar
283-
el :math:`i-ésimo` elemento de ``v``:
283+
el :math:`i`-ésimo elemento de ``v``:
284284

285285
.. link
286286

src/sage/combinat/matrices/dancing_links.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ cdef class dancing_linksWrapper:
886886
Return the SAT solver solving an equivalent problem.
887887
888888
Note that row index `i` in the dancing links solver corresponds to
889-
the boolean variable index `ì+1` for the SAT solver to avoid
889+
the boolean variable index `i+1` for the SAT solver to avoid
890890
the variable index `0`.
891891
892892
See also :mod:`sage.sat.solvers.satsolver`.

src/sage/graphs/matching_covered_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ def is_brace(self, coNP_certificate=False):
26172617
26182618
For a brace `G[A, B]` of order six or more, `|N(X)| \geq |X| + 2`, for
26192619
all `X \subset A` such that `0 < |X| <|A| - 1`, where
2620-
`N(S) := \{b | (a, b) \in E \^ a \in S\}` is called the neighboring set
2620+
`N(S) := \{b | (a, b) \in E \wedge a \in S\}` is called the neighboring set
26212621
of `S`::
26222622
26232623
sage: H = graphs.MoebiusLadderGraph(15)

src/sage/stats/distributions/discrete_gaussian_integer.pyx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):
169169
INPUT:
170170
171171
- ``sigma`` -- samples `x` are accepted with probability proportional to
172-
`\exp(-(x-c)²/(²))`
172+
`\exp(-(x-c)^2/(^2))`
173173
174174
- ``c`` -- the mean of the distribution. The value of ``c`` does not have
175175
to be an integer. However, some algorithms only support integer-valued
@@ -191,25 +191,25 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):
191191
192192
- ``'uniform+table'`` -- classical rejection sampling, sampling from the
193193
uniform distribution and accepted with probability proportional to
194-
`\exp(-(x-c)²/(²))` where `\exp(-(x-c)²/(²))` is precomputed and
194+
`\exp(-(x-c)^2/(^2))` where `\exp(-(x-c)^2/(^2))` is precomputed and
195195
stored in a table. Any real-valued `c` is supported.
196196
197197
- ``'uniform+logtable'`` -- samples are drawn from a uniform distribution and
198-
accepted with probability proportional to `\exp(-(x-c)²/(²))` where
199-
`\exp(-(x-c)²/(²))` is computed using logarithmically many calls to
198+
accepted with probability proportional to `\exp(-(x-c)^2/(^2))` where
199+
`\exp(-(x-c)^2/(^2))` is computed using logarithmically many calls to
200200
Bernoulli distributions. See [DDLL2013]_ for details. Only
201201
integer-valued `c` are supported.
202202
203203
- ``'uniform+online'`` -- samples are drawn from a uniform distribution and
204-
accepted with probability proportional to `\exp(-(x-c)²/(²))` where
205-
`\exp(-(x-c)²/(²))` is computed in each invocation. Typically this
204+
accepted with probability proportional to `\exp(-(x-c)^2/(^2))` where
205+
`\exp(-(x-c)^2/(^2))` is computed in each invocation. Typically this
206206
is very slow. See [DDLL2013]_ for details. Any real-valued `c` is
207207
accepted.
208208
209209
- ``'sigma2+logtable'`` -- samples are drawn from an easily samplable
210210
distribution with `σ = k·σ_2` with `σ_2 = \sqrt{1/(2\log 2)}` and accepted
211-
with probability proportional to `\exp(-(x-c)²/(²))` where
212-
`\exp(-(x-c)²/(²))` is computed using logarithmically many calls to Bernoulli
211+
with probability proportional to `\exp(-(x-c)^2/(^2))` where
212+
`\exp(-(x-c)^2/(^2))` is computed using logarithmically many calls to Bernoulli
213213
distributions (but no calls to `\exp`). See [DDLL2013]_ for details. Note that this
214214
sampler adjusts `σ` to match `k·σ_2` for some integer `k`.
215215
Only integer-valued `c` are supported.

src/sage/stats/distributions/discrete_gaussian_polynomial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
This class realizes oracles which returns polynomials in `\ZZ[x]`
55
where each coefficient is sampled independently with a probability
6-
proportional to `\exp(-(x-c)²/(2σ²))`.
6+
proportional to `\exp(-(x-c)^2/(2σ^2))`.
77
88
AUTHORS:
99
@@ -89,7 +89,7 @@ def __init__(self, P, n, sigma):
8989
- ``P`` -- a univariate polynomial ring over the Integers
9090
- ``n`` -- number of coefficients to be sampled
9191
- ``sigma`` -- coefficients `x` are accepted with probability
92-
proportional to `\exp(-x²/(2σ²))`. If an object of type
92+
proportional to `\exp(-x^2/(2σ^2))`. If an object of type
9393
:class:`sage.stats.distributions.discrete_gaussian_integer.DiscreteGaussianDistributionIntegerSampler`
9494
is passed, then this sampler is used to sample coefficients.
9595

0 commit comments

Comments
 (0)