vandermonde-matrix
v1.0.0
Published
Vandermonde Matrix
Downloads
7
Readme
node-vandermonde-matrix
In linear algebra, a Vandermonde matrix is a matrix with the terms of a geometric progression in each row, i.e., an m × n matrix. see more
Install
$ npm install --save vandermonde-matrix
Usage
var vandermondeMatrix = require('vandermonde-matrix');
vandermondeMatrix([1, 2, 3], 3);
//=> [[1, 1, 1],
// [1, 2, 4],
// [1, 3, 9]]
API
vandermondeMatrix(terms, degree)
terms
Required
Type: Array
degree
Required
Type: number
License
MIT © Vinícius do Carmo