vander: Vandermonde matrix

View source: R/vander.R

vanderR Documentation

Vandermonde matrix

Description

Generate Vandermonde matrix from a numeric vector.

Usage

  vander(x)

Arguments

x

Numeric vector

Details

Generates the usual Vandermonde matrix from a numeric vector, e.g. applied when fitting a polynomial to given points. Complex values are allowed.

Value

Vandermonde matrix of dimension n where n = length(x).

Examples

  vander(c(1:10))

pracma documentation built on March 19, 2024, 3:05 a.m.