FUNCTION REFERENCE
pascal
Pascal matrix.
Pascal matrix.
Syntax
P = pascal(n)Syntax
P = pascal(n, 1)Syntax
P = pascal(n, 2)Syntax
P = pascal(n, k, 'double')pascal(n) is symmetric positive definite with binomial entries. pascal(n,1) is the
lower triangular Cholesky factor (signs alternate). pascal(n,2) is a transposed and
permuted cube root of the identity.
Example
pascal(4) % [1 1 1 1; 1 2 3 4; 1 3 6 10; 1 4 10 20]Differences from MATLAB: the class 'single' is not supported (no single arrays).
For n > 28 some entries exceed 2^53 and are rounded; the additive recurrence used
here can then differ in the last digits from the factor product P*P'.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.