Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pascal

Pascal Triangle


Description

Pascal triangle in matrix format

Usage

pascal(n, k = 0)

Arguments

n

natural number

k

natural number, k <= n

Details

Pascal triangle with k variations.

Value

matrix representing the Pascal triangle

See Also

nchoosek

Examples

pascal(5)
pascal(5, 1)
pascal(5, 2)

pracma

Practical Numerical Math Functions

v2.3.3
GPL (>= 3)
Authors
Hans W. Borchers [aut, cre]
Initial release
2021-01-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.