Home > @josh-brown/vector > MatrixBuilder > pascalSymmetric
Constructs a symmetric matrix whose entries are the binomial coefficients (i + j choose i)
Signature:
pascalSymmetric(size: number): M;|
Parameter |
Type |
Description |
|---|---|---|
|
size |
number |
The size of the Pascal matrix |
Returns:
M
const pascalSymmetric = matrixBuilder.pascalSymmetric(4);
// [ 1 1 1 1 ]
// [ 1 2 3 4 ]
// [ 1 3 6 10 ]
// [ 1 4 10 20 ]