pascal | R Documentation |
Generate Pascal matrix.
pascal(n, k=0)
n |
numeric scalar specifying order |
k |
numeric scalar specifying desired option. Valid values are 0, 1, or 2 |
Specifying k=0
returns symmetric positive definite matrix
with integer entries taken from Pascal's triangle.
Specifying k=1
returns the lower triangular Cholesky factor
(up to the signs of the columns) of the Pascal matrix.
Specifying k=2
returns a cube root of the identity matrix.
Returns matrix of order n
according to specified option k
.
P. Roebuck proebuck1701@gmail.com
pascal(4)
pascal(3, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.