View source: R/combinatorics.R
This function returns the double factorial n!! of a natural number n. It is defined as n!! = n*(n-2)*(n-4)*...*1 if n is odd and n!! = n*(n-2)*(n-4)*...*2 if n is even.
1 | dfactorial(n)
|
n |
a non negative, natural number |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.