Pascal matrix
p = pascal(n) p = pascal(n, k)
non-negative scalar integer.
a positive integer: 0, 1 or 2. Default value is 0.
n x n matrix.
p = pascal(n) returns the Pascal matrix of size n x n. The Pascal matrix is the symmetric matrix, positive definite and has the Cholesky factorization.
p = pascal(n, 0) is equivalent to p = pascal(n).
p1 = pascal(n, 1) returns the lower triangular Cholesky factor of the Pascal matrix, and p1 * p1' = p
where p is the result of pascal(n). The result is its own inverse and is equal to the square root of the identity matrix,
p1 ^2 = eye(n,n).
p2 = pascal(n, 2) permutes and transposes pascal(n, 1). p2^3 is equal to the cube root of the
identity matrix.
| Version | Description |
| 2025.1.0 | Introduction in Scilab. |