> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/e/evaluate_binomial_coefficients.md).

# Evaluate binomial coefficients

Straightforward translation of the formula:

```ruby
func binomial(n,k) {
    n! / ((n-k)! * k!)
}
 
say binomial(400, 200)
```

Alternatively, by using the `Number.binomial()` function:

```ruby
say binomial(400,200)
```
