Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/doc/es/tutorial/tour_help.rst
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ El indexado de una lista comienza en el cero, como en muchos lenguajes de progra

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

.. link

Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/matrices/dancing_links.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ cdef class dancing_linksWrapper:
Return the SAT solver solving an equivalent problem.

Note that row index `i` in the dancing links solver corresponds to
the boolean variable index `ì+1` for the SAT solver to avoid
the boolean variable index `i+1` for the SAT solver to avoid
the variable index `0`.

See also :mod:`sage.sat.solvers.satsolver`.
Expand Down
2 changes: 1 addition & 1 deletion src/sage/graphs/matching_covered_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ def is_brace(self, coNP_certificate=False):

For a brace `G[A, B]` of order six or more, `|N(X)| \geq |X| + 2`, for
all `X \subset A` such that `0 < |X| <|A| - 1`, where
`N(S) := \{b | (a, b) \in E \^ a \in S\}` is called the neighboring set
`N(S) := \{b | (a, b) \in E \wedge a \in S\}` is called the neighboring set
of `S`::

sage: H = graphs.MoebiusLadderGraph(15)
Expand Down
16 changes: 8 additions & 8 deletions src/sage/stats/distributions/discrete_gaussian_integer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):
INPUT:

- ``sigma`` -- samples `x` are accepted with probability proportional to
`\exp(-(x-c)²/(2σ²))`
`\exp(-(x-c)^2/(2σ^2))`

- ``c`` -- the mean of the distribution. The value of ``c`` does not have
to be an integer. However, some algorithms only support integer-valued
Expand All @@ -191,25 +191,25 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):

- ``'uniform+table'`` -- classical rejection sampling, sampling from the
uniform distribution and accepted with probability proportional to
`\exp(-(x-c)²/(2σ²))` where `\exp(-(x-c)²/(2σ²))` is precomputed and
`\exp(-(x-c)^2/(2σ^2))` where `\exp(-(x-c)^2/(2σ^2))` is precomputed and
stored in a table. Any real-valued `c` is supported.

- ``'uniform+logtable'`` -- samples are drawn from a uniform distribution and
accepted with probability proportional to `\exp(-(x-c)²/(2σ²))` where
`\exp(-(x-c)²/(2σ²))` is computed using logarithmically many calls to
accepted with probability proportional to `\exp(-(x-c)^2/(2σ^2))` where
`\exp(-(x-c)^2/(2σ^2))` is computed using logarithmically many calls to
Bernoulli distributions. See [DDLL2013]_ for details. Only
integer-valued `c` are supported.

- ``'uniform+online'`` -- samples are drawn from a uniform distribution and
accepted with probability proportional to `\exp(-(x-c)²/(2σ²))` where
`\exp(-(x-c)²/(2σ²))` is computed in each invocation. Typically this
accepted with probability proportional to `\exp(-(x-c)^2/(2σ^2))` where
`\exp(-(x-c)^2/(2σ^2))` is computed in each invocation. Typically this
is very slow. See [DDLL2013]_ for details. Any real-valued `c` is
accepted.

- ``'sigma2+logtable'`` -- samples are drawn from an easily samplable
distribution with `σ = k·σ_2` with `σ_2 = \sqrt{1/(2\log 2)}` and accepted
with probability proportional to `\exp(-(x-c)²/(2σ²))` where
`\exp(-(x-c)²/(2σ²))` is computed using logarithmically many calls to Bernoulli
with probability proportional to `\exp(-(x-c)^2/(2σ^2))` where
`\exp(-(x-c)^2/(2σ^2))` is computed using logarithmically many calls to Bernoulli
distributions (but no calls to `\exp`). See [DDLL2013]_ for details. Note that this
sampler adjusts `σ` to match `k·σ_2` for some integer `k`.
Only integer-valued `c` are supported.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/stats/distributions/discrete_gaussian_polynomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This class realizes oracles which returns polynomials in `\ZZ[x]`
where each coefficient is sampled independently with a probability
proportional to `\exp(-(x-c)²/(2σ²))`.
proportional to `\exp(-(x-c)^2/(2σ^2))`.

AUTHORS:

Expand Down Expand Up @@ -89,7 +89,7 @@ def __init__(self, P, n, sigma):
- ``P`` -- a univariate polynomial ring over the Integers
- ``n`` -- number of coefficients to be sampled
- ``sigma`` -- coefficients `x` are accepted with probability
proportional to `\exp(-x²/(2σ²))`. If an object of type
proportional to `\exp(-x^2/(2σ^2))`. If an object of type
:class:`sage.stats.distributions.discrete_gaussian_integer.DiscreteGaussianDistributionIntegerSampler`
is passed, then this sampler is used to sample coefficients.

Expand Down
Loading