vandermonde-matrix

Vandermonde Matrix

Usage no npm install needed!

<script type="module">
  import vandermondeMatrix from 'https://cdn.skypack.dev/vandermonde-matrix';
</script>

README

node-vandermonde-matrix Build Status

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

vandermonde matrix d

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