Skip to content

Commit 0dadb58

Browse files
committed
DOC: Fix math expression
Add omited {} to math expressions [skip ci]
1 parent ea6819a commit 0dadb58

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

randomstate/shims/pcg-32/pcg-32.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ RandomState(seed=None)
4141
Container for the PCG-32 pseudo random number generator.
4242
4343
PCG-32 is a 64-bit implementation of O'Neill's permutation congruential
44-
generator ([1]_, [2]_). PCG-32 has a period of :math:`2^64` and supports advancing
45-
an arbitrary number of steps as well as :math:`2^63` streams.
44+
generator ([1]_, [2]_). PCG-32 has a period of :math:`2^{64}` and supports advancing
45+
an arbitrary number of steps as well as :math:`2^{63}` streams.
4646
4747
``pcg32.RandomState`` exposes a number of methods for generating random
4848
numbers drawn from a variety of probability distributions. In addition to the

randomstate/shims/pcg-64/pcg-64-docstring.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ RandomState(seed=None)
44
Container for the PCG-64 pseudo random number generator.
55
66
PCG-64 is a 128-bit implementation of O'Neill's permutation congruential
7-
generator ([1]_, [2]_). PCG-64 has a period of :math:`2^128` and supports advancing
8-
an arbitrary number of steps as well as :math:`2^127` streams.
7+
generator ([1]_, [2]_). PCG-64 has a period of :math:`2^{128}` and supports advancing
8+
an arbitrary number of steps as well as :math:`2^{127}` streams.
99
1010
``pcg64.RandomState`` exposes a number of methods for generating random
1111
numbers drawn from a variety of probability distributions. In addition to the

randomstate/shims/xorshift1024/xorshift1024.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ RandomState(seed=None)
5050
Container for the xorshift1024* pseudo random number generator.
5151
5252
xorshift1024* is a 64-bit implementation of Saito and Matsumoto's XSadd
53-
generator [1]_. xorshift1024* has a period of :math:`2^1024 - 1` and
54-
supports jumping the sequence in increments of :math:`2^512`, which allow multiple
53+
generator [1]_. xorshift1024* has a period of :math:`2^{1024} - 1` and
54+
supports jumping the sequence in increments of :math:`2^{512}`, which allow multiple
5555
non-overlapping sequences to be generated.
5656
5757
``xorshift1024.RandomState`` exposes a number of methods for generating random

randomstate/shims/xorshift128/xorshift128.pxi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ RandomState(seed=None)
4545
Container for the xorshift128+ pseudo random number generator.
4646
4747
xorshift128+ is a 64-bit implementation of Saito and Matsumoto's XSadd
48-
generator [1]_. xorshift128+ has a period of :math:`2^128 - 1` and
49-
supports jumping the sequence in increments of :math:`2^64`, which allow multiple
48+
generator [1]_. xorshift128+ has a period of :math:`2^{128} - 1` and
49+
supports jumping the sequence in increments of :math:`2^{64}`, which allow multiple
5050
non-overlapping sequences to be generated.
5151
5252
``xorshift128.RandomState`` exposes a number of methods for generating random
@@ -78,7 +78,7 @@ seed : {None, int}, optional
7878
Notes
7979
-----
8080
See xorshift1024 for an implementation with a larger period
81-
:math:`2^1024 - 1` and jump size.
81+
(:math:`2^{1024} - 1`) and jump size (:math:`2^{512} - 1`).
8282
8383
**Parallel Features**
8484

0 commit comments

Comments
 (0)