summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnumpy/f2py/crackfortran.py2
-rw-r--r--numpy/f2py/symbolic.py2
-rw-r--r--numpy/random/src/distributions/random_hypergeometric.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index c68aba5c8..661806645 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -2671,7 +2671,7 @@ def analyzevars(block):
init = init.tostring(
language=symbolic.Language.C)
vars[v]['='] = init
- # n needs to be initialzed before v. So,
+ # n needs to be initialized before v. So,
# making v dependent on n and on any
# variables in solver or d.
vars[v]['depend'] = [n] + deps
diff --git a/numpy/f2py/symbolic.py b/numpy/f2py/symbolic.py
index b747a75f9..1b7b35458 100644
--- a/numpy/f2py/symbolic.py
+++ b/numpy/f2py/symbolic.py
@@ -1098,7 +1098,7 @@ def as_term_coeff(obj):
if len(obj.data) == 1:
(term, coeff), = obj.data.items()
return term, coeff
- # TODO: find common divisior of coefficients
+ # TODO: find common divisor of coefficients
if obj.op is Op.APPLY and obj.data[0] is ArithOp.DIV:
t, c = as_term_coeff(obj.data[1][0])
return as_apply(ArithOp.DIV, t, obj.data[1][1]), c
diff --git a/numpy/random/src/distributions/random_hypergeometric.c b/numpy/random/src/distributions/random_hypergeometric.c
index 0da49bd62..d8510bfca 100644
--- a/numpy/random/src/distributions/random_hypergeometric.c
+++ b/numpy/random/src/distributions/random_hypergeometric.c
@@ -155,7 +155,7 @@ static int64_t hypergeometric_hrua(bitgen_t *bitgen_state,
c = sqrt(var + 0.5);
/*
- * h is 2*s_hat (See Stadlober's theses (1989), Eq. (5.17); or
+ * h is 2*s_hat (See Stadlober's thesis (1989), Eq. (5.17); or
* Stadlober (1990), Eq. 8). s_hat is the scale of the "table mountain"
* function that dominates the scaled hypergeometric PMF ("scaled" means
* normalized to have a maximum value of 1).