pascal | R Documentation |
Pascal triangle in matrix format
pascal(n, k = 0)
n |
natural number |
k |
natural number, |
Pascal triangle with k
variations.
matrix representing the Pascal triangle
nchoosek
pascal(5)
pascal(5, 1)
pascal(5, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.