Skip to content

Commit d1b633b

Browse files
Merge pull request #115 from AshtonSBradley/fixdocstrings
narana and prevprod tweaks
2 parents ebc4d67 + 0acfb8e commit d1b633b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/numbers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868
"""
6969
narayana(n,k)
7070
71-
Compute the Narayana number `N(n,k)`` given by ``\\frac{1}{n}\\binom{n}{k}\\binom{n}{k-1}``
71+
Compute the Narayana number `N(n,k)` given by ``\\frac{1}{n}\\binom{n}{k}\\binom{n}{k-1}``
7272
Wikipedia : https://en.wikipedia.org/wiki/Narayana_number
7373
"""
7474
function narayana(bn::Integer,bk::Integer)

src/partitions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ integers ``p_1``, ``p_2``, etc.
399399
400400
For integers ``i_1``, ``i_2``, ``i_3``, this is equivalent to finding the largest ``x``
401401
such that
402-
```math
403-
i_1^n_1 i_2^n_2 i_3^n_3 \\leq x
404-
```
402+
403+
``i_1^{n_1} i_2^{n_2} i_3^{n_3} \\leq x``
404+
405405
for integers ``n_1``, ``n_2``, ``n_3``.
406406
"""
407407
function prevprod(a::Vector{Int}, x)

0 commit comments

Comments
 (0)