Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing backslashes in LaTeX syntax in the document of binomial function #29933

Merged
merged 2 commits into from
Nov 7, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions base/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -828,18 +828,18 @@ end
"""
binomial(n::Integer, k::Integer)

The _binomial coefficient_ ``\binom{n}{k}``, being the coefficient of the ``k``th term in
The _binomial coefficient_ ``\\binom{n}{k}``, being the coefficient of the ``k``th term in
the polynomial expansion of ``(1+x)^n``.

If ``n`` is non-negative, then it is the number of ways to choose `k` out of `n` items:
```math
\binom{n}{k} = \frac{n!}{k! (n-k)!}
\\binom{n}{k} = \\frac{n!}{k! (n-k)!}
```
where ``n!`` is the [`factorial`](@ref) function.

If ``n`` is negative, then it is defined in terms of the identity
```math
\binom{n}{k} = (-1)^k \binom{k-n-1}{k}
\\binom{n}{k} = (-1)^k \\binom{k-n-1}{k}
```

# Examples
Expand Down