Skip to content

Commit

Permalink
Merge pull request #115 from AshtonSBradley/fixdocstrings
Browse files Browse the repository at this point in the history
narana and prevprod tweaks
  • Loading branch information
logankilpatrick authored Nov 25, 2021
2 parents ebc4d67 + 0acfb8e commit d1b633b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ end
"""
narayana(n,k)
Compute the Narayana number `N(n,k)`` given by ``\\frac{1}{n}\\binom{n}{k}\\binom{n}{k-1}``
Compute the Narayana number `N(n,k)` given by ``\\frac{1}{n}\\binom{n}{k}\\binom{n}{k-1}``
Wikipedia : https://en.wikipedia.org/wiki/Narayana_number
"""
function narayana(bn::Integer,bk::Integer)
Expand Down
6 changes: 3 additions & 3 deletions src/partitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ integers ``p_1``, ``p_2``, etc.
For integers ``i_1``, ``i_2``, ``i_3``, this is equivalent to finding the largest ``x``
such that
```math
i_1^n_1 i_2^n_2 i_3^n_3 \\leq x
```
``i_1^{n_1} i_2^{n_2} i_3^{n_3} \\leq x``
for integers ``n_1``, ``n_2``, ``n_3``.
"""
function prevprod(a::Vector{Int}, x)
Expand Down

0 comments on commit d1b633b

Please sign in to comment.