# pascal

## Purpose

Pascal matrix.

## Synopsis

    X = pascal(n)
    X = pascal(n,1)
    X = pascal(n,2)

## Description

`X = pascal(n)` returns the Pascal matrix of order `n`. `X` is a symmetric, positive, definite matrix with integer entries made up from Pascal's triangle. The inverse of `X` has integer entries.

`X = pascal(n,1)` is the lower triangular Cholesky factor (up to the signs of the columns) of the Pascal matrix. It is involuntary, that is, it is its own inverse.

`X = pascal(n,2)` is a transposed and permuted version of `pascal(n,1)`. `X` is a cube root of the identity matrix.

## Examples

    (pascal(3,2))^3

    ans =
        1    0    0
        0    1    0
        0    0    1

## See Also

    chol

(c) Copyright 1994 by The MathWorks, Inc.