Skip to content

Commit 603ca13

Browse files
committed
fix typos in src/
1 parent 7c1db6a commit 603ca13

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

src/flint/test/test_all.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4188,7 +4188,7 @@ def test_fq_default():
41884188
assert raises(lambda: gf_5.one() + gf_5_2.one(), ValueError)
41894189
# testing various equalties between types
41904190

4191-
# integers are the same if charactersitic is the same
4191+
# integers are the same if characteristic is the same
41924192
# even with extensions
41934193
assert gf_5.one() == gf_5_.one()
41944194
assert hash(gf_5.one()) == hash(gf_5_.one())
@@ -4242,7 +4242,7 @@ def test_fq_default():
42424242
assert gf_5_2(-1) != R7(-1)
42434243
assert gf_5_2(-1) != R7(4)
42444244

4245-
# test fq_default element arithemtic
4245+
# test fq_default element arithmetic
42464246

42474247
for gf in [gf_5, gf_5_2, gf_127, gf_127_2]:
42484248

@@ -4336,7 +4336,7 @@ def test_fq_default_poly():
43364336
assert R1(0).leading_coefficient() == 0
43374337
assert raises(lambda: R1.random_element().reverse(degree=-1), ValueError)
43384338

4339-
# some coersion
4339+
# some coercion
43404340
assert raises(lambda: R3(F(1)), ValueError)
43414341
assert R1.one() == R1(1)
43424342
assert R1.one() == R1([1])

src/flint/types/acb.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ cdef class acb(flint_scalar):
747747
acb_dirichlet_lerch_phi((<acb>u).val, (<acb>z).val, (<acb>s).val, (<acb>a).val, getprec())
748748
return u
749749

750-
751750
def dirichlet_l(s, chi):
752751
cdef dirichlet_char cchar
753752
if isinstance(chi, dirichlet_char):
@@ -761,7 +760,7 @@ cdef class acb(flint_scalar):
761760
@staticmethod
762761
def pi():
763762
"""
764-
Returns tthe constant `\pi` as an *acb*.
763+
Returns the constant `\pi` as an *acb*.
765764
766765
>>> from flint import showgood
767766
>>> showgood(lambda: acb.pi(), dps=25)
@@ -796,6 +795,7 @@ cdef class acb(flint_scalar):
796795
def rsqrt(s, bint analytic=False):
797796
r"""
798797
Reciprocal square root `1/\sqrt{s}`.
798+
799799
The *analytic* flag allows verifying that the branch cut is not
800800
touched; this is useful for numerical integration.
801801

src/flint/types/fmpz_mod.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ from flint.utils.flint_exceptions import DomainError
3535

3636
cdef class fmpz_mod_ctx:
3737
r"""
38-
Context object for creating :class:`~.fmpz_mod` initalised
38+
Context object for creating :class:`~.fmpz_mod` initialised
3939
with a modulus :math:`N`.
4040
4141
>>> fmpz_mod_ctx(2**127 - 1)
@@ -142,7 +142,7 @@ cdef class fmpz_mod_ctx:
142142

143143
cdef discrete_log_pohlig_hellman_run(self, fmpz_t x, fmpz_t y):
144144
# First, Ensure that L has performed precomputations This generates a
145-
# base which is a primative root, and used as the base in
145+
# base which is a primitive root, and used as the base in
146146
# fmpz_mod_discrete_log_pohlig_hellman_run
147147
if not self._init_L:
148148
fmpz_mod_discrete_log_pohlig_hellman_precompute_prime(self.L, self.val.n)
@@ -367,7 +367,7 @@ cdef class fmpz_mod(flint_scalar):
367367
fmpz_init(x_a)
368368
self.ctx.discrete_log_pohlig_hellman_run(x_a, (<fmpz_mod>a).val)
369369

370-
# If g is not a primative root, then x_g and pm1 will share
370+
# If g is not a primitive root, then x_g and pm1 will share
371371
# a common factor. We can use this to compute the order of
372372
# g.
373373
cdef fmpz_t g, g_order, x_g

src/flint/types/fmpz_mod_poly.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ from flint.utils.flint_exceptions import DomainError
2222

2323
cdef class fmpz_mod_poly_ctx:
2424
r"""
25-
Context object for creating :class:`~.fmpz_mod_poly` initalised
25+
Context object for creating :class:`~.fmpz_mod_poly` initialised
2626
with a modulus :math:`N`.
2727
2828
>>> fmpz_mod_poly_ctx(2**127 - 1)
@@ -467,7 +467,7 @@ cdef class fmpz_mod_poly(flint_poly):
467467
def exact_division(self, right):
468468
"""
469469
Attempt to compute the exact quotient of self with other
470-
Raises a value error if divison without remainer is not
470+
Raises a value error if division without remainder is not
471471
possible.
472472
473473
>>> R = fmpz_mod_poly_ctx(163)

src/flint/types/fq_default_poly.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ from flint.utils.flint_exceptions import DomainError
1515

1616
cdef class fq_default_poly_ctx:
1717
r"""
18-
Context object for creating :class:`~.fq_default_poly` initalised
18+
Context object for creating :class:`~.fq_default_poly` initialised
1919
with a finite field `GF(p^d)`.
2020
2121
>>> fq_default_poly_ctx(163, 3, fq_type="FQ_NMOD")
@@ -733,8 +733,9 @@ cdef class fq_default_poly(flint_poly):
733733

734734
def exact_division(self, other):
735735
"""
736-
Attempt to compute the exact quotient of self with other
737-
Raises a value error if divison without remainer is not
736+
Attempt to compute the exact quotient of self with other.
737+
738+
Raises a value error if division without remainder is not
738739
possible.
739740
740741
>>> R = fq_default_poly_ctx(163)

0 commit comments

Comments
 (0)